Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Please tell me how to handle postback event of dropdown control in gridview in ASP.NET from code behind file.

Thanks
Posted

1 solution

Hi,
Try this:
HTML:(Inside the grid.)
ASP.NET
<footertemplate>
    <asp:dropdownlist id="ddlInsuredTitle" runat="server" autopostback="true" onselectedindexchanged="ddlInsuredTitle_SelectedIndexChanged" xmlns:asp="#unknown" />
</footertemplate>

CodeBehind:
C#
protected void ddlInsuredTitle_SelectedIndexChanged(object sender, EventArgs e)
{
    // Handle your event here
}



--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900