I have UserControl that has few fields (address, suburb, etc) and a SubmitButton, once the Submit Button is pressed, a post back goes to the server and I save the details entered to a session to store it into the database at later stage.
All works fine on my local machine, and on my team members machines as well. However, once I deploy to the server, the Button Click does not work. When I click the button it posts back (reloads the page) but it never hits my event handler.
I had few validation on the page. I tried removing them all and still did not help. I Suspected server settings, so I deployed to another server (GoDaddy and CrazyDomains) and the same problem happens.
To make it more complicated, in few instances, it works on the Server fine. I am running .NET 4.0 and VS 2010
Any help would be highly appreciated. Thanks
<div class="clear" style="padding-top: 20px;">
<asp:Button runat="server"
ID="SubmitButton"
OnClick="SubmitButtonClick"
Text="View Plans"
Width="150px"
CssClass="NextButton CompareButton"/>
</div>
The event handler
protected void SubmitButtonClick(object sender, EventArgs e)
{
// doing my form data saving here
// not hitting this point
Response.Redirect("http://google.com");
}