simple ASP.Net Loginpage with SQL server

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 1
Reputation: eswapna is an unknown quantity at this point 
Solved Threads: 0
eswapna eswapna is offline Offline
Newbie Poster

simple ASP.Net Loginpage with SQL server

 
0
  #1
Jan 31st, 2007
Hi All,

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

Thanks,
Swapna
Last edited by eswapna; Jan 31st, 2007 at 2:27 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 130
Reputation: sedgey is on a distinguished road 
Solved Threads: 8
sedgey's Avatar
sedgey sedgey is offline Offline
Junior Poster

Re: simple ASP.Net Loginpage with SQL server

 
0
  #2
Feb 1st, 2007
David Ridgway: so little daylight, too much caffeine
MCSD MCAD MCSE
http://web2asp.net
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 5
Reputation: kaptham is an unknown quantity at this point 
Solved Threads: 0
kaptham kaptham is offline Offline
Newbie Poster

Re: simple ASP.Net Loginpage with SQL server

 
0
  #3
Apr 26th, 2008
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>
Last edited by peter_budo; Apr 26th, 2008 at 3:44 pm. Reason: Email snipped
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 4
Reputation: vmadhu_ece is an unknown quantity at this point 
Solved Threads: 1
vmadhu_ece vmadhu_ece is offline Offline
Newbie Poster

Re: simple ASP.Net Loginpage with SQL server

 
0
  #4
May 9th, 2008
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. }
Last edited by peter_budo; May 11th, 2008 at 6:24 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC