G
Guest
Hello, friends,
Help please, this has driven me nuts:
I am developing the default.aspx page. In this page, we allow a user to type
user name/password, and then click on Submit button to login.
<form name="form1" onsubmit="return isValidInput()" action="default.aspx"
method="post">
.....
<INPUT type="submit" value="Submit" id="submit">
</form>
In Page_Load(), we have a statement to check if this is a postback:
If (this.IsPostBack)
//verifying login info and direct to proper page
else
//display default page
However, for some reason, this.IsPostBack was always false, no matter it was
the first time to view default.aspx from IE or after a user typed a valid
user name/pswd and clicked on Submit button.
Any ideas?
Thanks a lot.
Help please, this has driven me nuts:
I am developing the default.aspx page. In this page, we allow a user to type
user name/password, and then click on Submit button to login.
<form name="form1" onsubmit="return isValidInput()" action="default.aspx"
method="post">
.....
<INPUT type="submit" value="Submit" id="submit">
</form>
In Page_Load(), we have a statement to check if this is a postback:
If (this.IsPostBack)
//verifying login info and direct to proper page
else
//display default page
However, for some reason, this.IsPostBack was always false, no matter it was
the first time to view default.aspx from IE or after a user typed a valid
user name/pswd and clicked on Submit button.
Any ideas?
Thanks a lot.