I'm new in .Net. I've a faced a problem. I'm using an aspx page that is inherited from master page in Visual Studio 2010. I've found that PostBack is not working for LinkButton click event & DropDownList indexChanged. Though normal Button & ImageButton is working fine. Please help me how DropDownList & LinkButton will work...
Here is my full code.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Body" runat="server">
<asp:DropDownList ID="ddlPageSelector" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSelector_SelectedIndexChanged">
protected void ddlPageSelector_SelectedIndexChanged(object sender, EventArgs e)
But same code is working in VisualStudio 2008.
Please help me out ...
Edited 4-Aug-13 0:56am
From the code it seems that your ASPX page is trying to find an event handler named ddlPageSelector_SelectedIndexChanged while your code behind is DropDownList1_SelectedIndexChanged.
I would suggest you to rebuild the solution and that should throw an error if the handler does not exist.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)