DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   simple ASP.Net Loginpage with SQL server (http://www.daniweb.com/forums/thread68801.html)

eswapna Jan 31st, 2007 1:26 pm
simple ASP.Net Loginpage with SQL server
 
Hi All,

I am new to .Net. can anyone please tell me how to create loginpage in detail with steps and code.

Thanks,
Swapna

sedgey Feb 1st, 2007 9:27 am
Re: simple ASP.Net Loginpage with SQL server
 
Try this article:
http://msdn2.microsoft.com/en-us/library/ms178331.aspx

kaptham Apr 26th, 2008 12:31 am
Re: simple ASP.Net Loginpage with SQL server
 
Hi..Please try to following link...


This link is step by step login creation....


http://www.asp.net/learn/security/?lang=cs


Thanks,
<email snipped>

vmadhu_ece May 9th, 2008 6:25 am
Re: simple ASP.Net Loginpage with SQL server
 
u hould create table eiyh two columns and enter username and password in table using insert command.
then come to asp page
in page load 1. initialize the connection using the code
sqlconnection con=new sqlconnection();
2.open the connection
con.open()
3.
sqlcommand cmd=new sqlcommand("select *from tablename",con);
4.
sqldatareader dr=cmd.executereader()
5.
while(dr.read())
6.
  1. if ((TxtUsername.Text) ==re.GetString(0) && (TxtPassword.Text) == re.GetString(1))
  2. {
  3.     Response.Redirect("default.aspx");
  4. }
  5. else
  6. {
  7.     Response.write("invalid");
  8. }


All times are GMT -4. The time now is 3:50 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC