Browse by Tags

Related Posts

  • Re: Dropdown list with duplicates

    I needed to remove duplicate years from a DropDownList and so I created the following class in C#: public class Ddl { public Ddl() { } public static void RemoveDuplicateItems( DropDownList ddl) { for ( int i = 0; i < ddl.Items.Count; i++) { ddl.SelectedIndex = i; string year = ddl.SelectedItem.ToString...
    Posted to Web Forms (Forum) by KD34XBR960 on 09-14-2006, 12:00 AM
    Filed under: c#, DropDownList
  • How to add a "dummy" dropdown list item

    My Web form contains a dropdown list which is populated by data from the database table; the dropdown list will thus display a list of items from the DB. Since this particular field is optional, I want the dropdown list to be able to show a blank item that the user may select when the field is to be...
    Posted to Web Forms (Forum) by sg2000 on 10-26-2006, 12:00 AM
    Filed under: ASP.NET 1.x, c#, DropDownList, Database
  • Re: How to set DropdownList Initial selectedIndex

    This is an old post but I'll reply for other people that reference it, as it is how I stumbled upon it. I think I know what your problem is here... Although you can set the .SelectedIndex and .SelectedValue properties in Page_Load() it does not get set there when the data is not bound. It only gets set...
    Posted to Web Forms (Forum) by christo_c on 11-16-2006, 12:00 AM
    Filed under: c#, components, DropDownList, ASP.NET 2.0, asp.NET 2.0 C#, ASP.NET 2.0 C# UserControl Parent MasterPage
  • OnSelectedItemChanged event problems

    Hi, I'm using the above event on a dropdown list, and it doesnt ever seem to be firing. What I want is the page to perform a databinding on another dropdownlist when a selection is made in the current dropdownlist. 1 < asp:DropDownList ID= "DDL1" runat= "server" OnSelectedIndexChanged= "ChangeDDL...
    Posted to Web Forms (Forum) by thedigit on 12-18-2006, 12:00 AM
    Filed under: c#, DropDownList, ASP.NET 2.0, event, dropDownList onselected
  • Table Adapter problem with sort order

    hi, i'm having trouble with the sort order from the TableAdapter class in that the DataSet method invokes a stored procedure on an SQL EXPRESS table which returns sorted data. i'm using the following code in my business object to return a collection: TeamsDataSetTableAdapters. TeamsTableAdapter teamsTableAdapter...
    Posted to Data Access and ObjectDataSource Control (Forum) by Del on 01-14-2007, 12:00 AM
    Filed under: Data, TableAdapter, DataSet, DropDownList, DataTable, C#
  • How to detect dropdownlist event in Datagrid Footer?

    Hi Everyone: I have 3 dropdownlist (ddl) in my Datagrid Footer, one is ddlParent, the others are ddlChild and dd;GrandChild. All of these are populated with respective items from the database. I would like that whenever the user selects a value from ddlParent, the items in the ddlChild will automatically...
    Posted to Data Presentation Controls (Forum) by sg2000 on 01-29-2007, 12:00 AM
    Filed under: datagrid, DropDownList, c#, Footer
  • Implementing optimistic Concurrency with ObjectDataSource & cascading dropdownlist

    Hello there, I have been trying to implement a formView to update recrords in an Oracle database, but I seem to be getting a concurrency violation error. I am currently the only user and the record is only access through one web browser. I also setup the FormView DataKeyNames to the primary key of the...
    Posted to Data Access and ObjectDataSource Control (Forum) by imanour on 03-26-2007, 12:00 AM
    Filed under: update, DAL, BLL, DropDownList, objectdatasource, C#, object data source, ObjectDataSource RowUpdating, Business Object, Asp.Net 2.0, ASP.NET
  • problems resetting dynamic dropdownlist

    I have a series of dropdownlists that I need to be able to reset with a button. I'm using tableadapters to populate the lists, with the following code to insert headers at the beginning of each list (the values that I need things to be reset to): (I call this onprerender of all the ddl's, as...
    Posted to Web Forms (Forum) by epalla on 06-29-2007, 12:00 AM
    Filed under: c#, DropDownList, DropDownList FindByValue, Dynamic Control
  • Concatenate DropDownList display data (XML Data Source)

    Hi there, I have an asp:DropDownList control, which is bound to a XML Data Source ("XmlDataMobile"). The XML Document ("Mobile.xml"): <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <mob_numbers> <mob_number user="John Smith"...
    Posted to XML and XmlDataSource Control (Forum) by Superfly on 09-26-2007, 12:00 AM
    Filed under: xml, XmlDataSource, ASP.NET, C#, XML control, XPath XmlDataSource, dropdownlist, XML DropDownList control DataSource XmlDataSource, Asp.Net XML Control, Asp.net XML, xml data, XML document
  • Re: How to create a function in a aspx.cs file and call it from another aspx.cs file

    I'll try to explain my problem in another way... In my Default.aspx.cs file i have content like this: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System...
    Posted to C# (Forum) by tje.gaab on 02-19-2008, 12:00 AM
    Filed under: C#, Classes, dropDownList, functions
Page 1 of 2 (12 items) 1 2 Next >