ASP Button will not fire on localhost

  • Thread starter Thread starter pkp303
  • Start date Start date
P

pkp303

I have a page with a submit button (<asp.button/>). When run this page in
production the button fires and submits the form, however, when I run the
page on my local machine, it won't submit!

Any ideas?
 
Hi,

Make sure that your <asp:button> tag still has runat="server" in it. Also
make sure in the code behind that there is still a handler on the Click
function for the button:

Private Sub btnRun_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnRun.Click

The "Handles btnRun.Click" at the end of the line above is necessary for the
event to fire. Good luck! Ken.
 
Back
Top