[Resolved]Submit button clicked?
I have login code that checks the DB for the Username/Password on this log in page.
The login page is the regular 2 textbox thing with a Submit button.
The code works but i need to be able to tell if the form was Posted by hitting the Submit button.
I currently have the Code in the Page_Load event, so i am trying to keep the code from running every time the page loads and only have it run when the user clicks the Submit Button.
I tried using
If IsPostBack Then
'do stuff
End if
but that doesn't work.
In PHP you simply put
If ($Submit) { // Where Submit is the name of the Forms Post Button
//do stuff
}
I also tried putting the code in the Submit_Click event but nothing at all happens then...
Which would be the best way to do this? I would think it would be the Click Event of the button, but why doesn't it do anything?
I have the form posting to itself, meaning that when you click the Submit button the page basically refreshes.
Thanks!:D