J
Jeff
Hey
asp.net 2.0
I have a asp.net 2.0 webpage which contain this markup:
<aspropDownList ID="ddlSelectView"
OnSelectedIndexChanged="ddlSelectView_SelectionChange" runat="server">
<asp:ListItem Value="0" Selected="True">Item 0</asp:ListItem>
<asp:ListItem Value="1">Item 1</asp:ListItem>
</aspropDownList>
My goal is to add some funtionalty (ddlSelectView_SelectionChange) to the
DropDownList which executes each time a selection changed has been done on
the DropDownList
The problem is that when the selection is changed the
ddlSelectView_SelectionChange method isn't called.
This is ddlSelectView_SelectionChange method:
protected void ddlSelectView_SelectionChange(Object sender, EventArgs e)
{
DropDownList dropdownlist =
(DropDownList)table1.FindControl("ddlSelectView");
int g = dropdownlist.SelectedIndex;
}
What am I doing wrong here?
Best Regards!
Jeff
asp.net 2.0
I have a asp.net 2.0 webpage which contain this markup:
<aspropDownList ID="ddlSelectView"
OnSelectedIndexChanged="ddlSelectView_SelectionChange" runat="server">
<asp:ListItem Value="0" Selected="True">Item 0</asp:ListItem>
<asp:ListItem Value="1">Item 1</asp:ListItem>
</aspropDownList>
My goal is to add some funtionalty (ddlSelectView_SelectionChange) to the
DropDownList which executes each time a selection changed has been done on
the DropDownList
The problem is that when the selection is changed the
ddlSelectView_SelectionChange method isn't called.
This is ddlSelectView_SelectionChange method:
protected void ddlSelectView_SelectionChange(Object sender, EventArgs e)
{
DropDownList dropdownlist =
(DropDownList)table1.FindControl("ddlSelectView");
int g = dropdownlist.SelectedIndex;
}
What am I doing wrong here?
Best Regards!
Jeff