Adding a new usercontrol prevents postback of my submit button
Hello Guys,
I have a problem with my two usercontrol.
At first my first form is working correctly. Clicking the submit button will redirect to the right page. The problem occurs when I add a new user control. The submit button is not firing any event.
Are you sure not one of them is firing? In ASP.NET it can be such a pain to work with forms if you have more than one. For the bright .NET guys in here it's probably pretty easy to resolve this.
But if you have a <form runat="server"></form> sorrounding your content you can't use other forms inside it. Then you need to make some grouping in your user control so the right form is fired on the click event.
Anyhow this could also be because of some interferring code so as Thomas is saying please provide us with some more information. Perhaps some code snippets etc.
This is working fine until I added a new usercontrol on my masterpage. If I try this new user control the submit button will work. The code for the new usercontrol is this.
Adding a new usercontrol prevents postback of my submit button
Hello Guys,
I have a problem with my two usercontrol.
At first my first form is working correctly. Clicking the submit button will redirect to the right page. The problem occurs when I add a new user control. The submit button is not firing any event.
Hello.
How can we help you solving this without any additional information?
Could you post some code and extra details about the difference between the two controls?
Did you update the DLL next to copying the .ascx?
Hi Sherry
Are you sure not one of them is firing? In ASP.NET it can be such a pain to work with forms if you have more than one. For the bright .NET guys in here it's probably pretty easy to resolve this.
But if you have a <form runat="server"></form> sorrounding your content you can't use other forms inside it. Then you need to make some grouping in your user control so the right form is fired on the click event.
Anyhow this could also be because of some interferring code so as Thomas is saying please provide us with some more information. Perhaps some code snippets etc.
/Jan
This is my code behind for my submit button
This is working fine until I added a new usercontrol on my masterpage. If I try this new user control the submit button will work. The code for the new usercontrol is this.
is working on a reply...