AutoPostBack not working with Master page for SelectedIndexChanged
I have several web pages that use a master page (see code below). The problem that I am having is the fact that when my pages use the master page the AutoPostBack isnt working e.g. I have a drop down list with which I have activated the SelectedIndexChanged event, which populates a gridView. This doesnt work when I use the master page but does when I dont.
Does auto postback work with Master Pages or is there something I need to do in order to get it working with them?
I see --- <form id="form1" runat="server"> --- in content page. I think this is not allowed. Remove this and try.
CB_Thirumalai
I also see that you do not have a form tag in the master page. You need to have a <form tag in the master page.
bobstery
ASKER
I have tried placing the form tag in the master page and the content page both do not work. It only works if I don't use a master page for some reason.
May be you have something different in the master and content pages. I have tried and was able to handle the post back and make the selected index changed event fire. I am not sure how you have it in your forms.
bobstery
ASKER
Could you post the master page and content page code here so I can have a look and analyse the difference?
Forgot to mention the difference. The only difference is, the dropdown you have is bound to a DataSourceID, whereas I have dummy data in it using ListItems.
http://forums.asp.net/p/1012839/1355754.aspx#1355754
http://www.webdeveloper.com/forum/archive/index.php/t-51694.html
I see --- <form id="form1" runat="server"> --- in content page. I think this is not allowed. Remove this and try.