Browse by Tags

Related Posts

  • Re: How can I force DropDownList to select another items (such as "Select Project Name")

    Here is an example string strSQL = "Select RoleTypeID,Description from admin_roletype "; MySqlDataAdapter da = new MySqlDataAdapter(strSQL, conn); DataSet ds = new DataSet(); da.Fill(ds); ddlRoleType.DataSource = ds; ddlRoleType.DataTextField = "Description"; ddlRoleType.DataValueField...
    Posted to SQL Server, SQL Server Express, and SqlDataSource Control (Forum) by fewlines4biju on 12-16-2008, 12:00 AM
    Filed under: asp .net 2.0, c#, DropDownList
  • N-Tier DropDownList Control

    I am creating a control that generates a new drop down list for children of the previously selected parent. I have created an N-Tier Model in the database, but need this control to filter search results. The problem i am having is reloading the state of the dynamic controls after multiple postbacks....
    Posted to State Management (Forum) by SyntaxC4 on 05-07-2008, 12:00 AM
    Filed under: view state, asp.net 2.0, c#, dropdownlist, dynamic controls
  • 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#, functions, dropDownList, Classes
  • 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: ASP.NET, Asp.Net XML Control, C#, dropdownlist, xml data, XML document, XML DropDownList control DataSource XmlDataSource, XmlDataSource, XPath XmlDataSource, xml, XML control, Asp.net XML
  • 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, Dynamic Control, DropDownList FindByValue
  • 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: object data source, objectdatasource, ObjectDataSource RowUpdating, update, ASP.NET, Asp.Net 2.0, Business Object, C#, DAL, DropDownList, BLL
  • 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: c#, datagrid, DropDownList, Footer
  • 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: TableAdapter, C#, Data, DataSet, DataTable, DropDownList
  • 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, event, ASP.NET 2.0, dropDownList onselected
  • 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: asp.NET 2.0 C#, ASP.NET 2.0 C# UserControl Parent MasterPage, c#, components, DropDownList, ASP.NET 2.0
Page 1 of 2 (15 items) 1 2 Next >