Dear All,
I have created login page in ASPX file now i want to check login from database, if login and password is their in database then it should open new form.
Can you send me some code.
Sandy
Hi Sandy,
If you have a look athttp://aspnet.4guysfromrolla.com/articles/120705-1.aspx, this is part one of an 8 part series on ASP.Net membership.
Hope this helps
Hi,
Add this line after checkin the vaule against the database ..
Response.Redirect("NewForm.aspx");
Hope this is what u r lookin for ...
Sandy, set the target attribute of your Form tag to be something like 'newwin' (anything, it doesnt really matter).
This will create a new window which your page will be posted back to. Unfortunately, this will happen regardless of whether the credentials are correct thoguh.
Sandy1234:
Dear All,
I have created login page in ASPX file now i want to check login from database, if login and password is their in database then it should open new form.
Can you send me some code.
Sandy
Hi,
IMO, this is best for you using ASP.NET 2.0 :How to: Create an ASP.NET Login Page
What's more, my suggestion is to learn more aboutLogin Control.
Happy programming.
0 comments:
Post a Comment