Ask a Question related to Brainstorming Area, Design and Development.
-
vmchase #1
dropdown list not firing
I have a dropdown list that I want to autopopulate different fields when a selections is made within that dropdown list. My problem with it is, when I run my code, I can select whatever I need from the dropdown list find but its when I go back to the dropdown list to select something it doesn't populate anything. Attached is my code- I have autopostback= true.
<asp
ropDownList ID="DDstoredproc" runat="server" AutoPostBack="True"
DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="Name"
Height="18px" onselectedindexchanged="DDstoredproc_SelectedIndex Changed"
Width="247px" AppendDataBoundItems="True" ViewStateMode="Enabled">
<asp:ListItem Value="-1" Selected="True">Choose Query</asp:ListItem>
</asp
ropDownList>
protected void DDstoredproc_SelectedIndexChanged(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
DDstoredproc.SelectedIndex = 0;
}
else
{
if (DDstoredproc.SelectedValue == "uspGetBillOfMaterials")
{
PlEmployeeInfo.Visible = false;
PlManagerEmployees.Visible = false;
}
else
{
if (DDstoredproc.SelectedValue == "uspGetManagerEmployees")
{
PlBOM.Visible = false;
PlEmployeeInfo.Visible = false;
}
else
{
if (DDstoredproc.SelectedValue == "uspUpdateEmployeePersonalInfo")
{
PlBOM.Visible = false;
PlManagerEmployees.Visible = false;
}
Junior Member
- Join Date
- Feb 2012
- Location
- Dallas
- Posts
- 1
-
Dropdown list
I would like to display 15 items (lines) in the dropdown list, but by default the list displays only 11 lines. How can I have all the 15 items... -
DataGrid with Dropdown list
Any Help is appreciated! I have a datagrid with Drop down list and a remove hyperlink as two columns. When I remove the row of the datagrid by... -
Refresh dropdown list
On a cfform I have a cfselect dropdown . The situtation is that when an option isn't listed I have a "Add button" next to the drop down that... -
dropdown list can't selected.
I have a EditItemTemplate in a datagrid that contain a dropdown that bound to a dataset. In that grid I have a ItemCreated to handle the dropdow... -
Binded DropDown list
Hi I'm using a datagrid with a dropdown list in it. The dropdown list is filled with values from SQL database, it's autopostback property is set to...



Reply With Quote

