S
Shiva
Use the OnSelectedIndexChanged attribute of the <aspropDownList> element
to hook to your server-side event.
Eg:
In .aspx file:
....
<EditItemTemplate>
<aspropDownList id="ddl" runat=server
OnSelectedIndexChanged="SelectionChanged" />
<EditItemTemplate>
....
In code-behind file:
//C#
protected void SelectionChanged (object sender, EventArgs e)
{
DropDownList d = (DropDownList)sender;
// Use d here
}
HTH.
(Type your message here)
--------------------------------
From: Uma Shanmugam
Everyone,
I have a datagrid and it has a dropdownlist in the Edit mode.I want to
capture the selectedIndexChanged event of the dropdownlist. I tried
ItemCommand event and then realised that it is fired when a button is
clicked.Any help will be greatly appreciated.
Thanks in Advance
Uma Shanmugam
to hook to your server-side event.
Eg:
In .aspx file:
....
<EditItemTemplate>
<aspropDownList id="ddl" runat=server
OnSelectedIndexChanged="SelectionChanged" />
<EditItemTemplate>
....
In code-behind file:
//C#
protected void SelectionChanged (object sender, EventArgs e)
{
DropDownList d = (DropDownList)sender;
// Use d here
}
HTH.
(Type your message here)
--------------------------------
From: Uma Shanmugam
Everyone,
I have a datagrid and it has a dropdownlist in the Edit mode.I want to
capture the selectedIndexChanged event of the dropdownlist. I tried
ItemCommand event and then realised that it is fired when a button is
clicked.Any help will be greatly appreciated.
Thanks in Advance
Uma Shanmugam