User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 329,242 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,247 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 883 | Replies: 3
Reply
Join Date: Jan 2007
Posts: 1
Reputation: eswapna is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
eswapna eswapna is offline Offline
Newbie Poster

Help simple ASP.Net Loginpage with SQL server

  #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 1:27 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Location: Japan
Posts: 70
Reputation: sedgey is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
sedgey sedgey is offline Offline
Junior Poster in Training

Re: simple ASP.Net Loginpage with SQL server

  #2  
Feb 1st, 2007
sedgey: so little daylight, too much caffeine
MCSD MCAD MCSE
http://www.thefriendlybuilder.co.uk,
http://www.sheetmusicdirect.com
Reply With Quote  
Join Date: Apr 2008
Location: Chennai
Posts: 5
Reputation: kaptham is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kaptham kaptham is offline Offline
Newbie Poster

Re: simple ASP.Net Loginpage with SQL server

  #3  
16 Days Ago
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 : 15 Days Ago at 2:44 pm. Reason: Email snipped
Reply With Quote  
Join Date: May 2008
Posts: 4
Reputation: vmadhu_ece is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vmadhu_ece vmadhu_ece is offline Offline
Newbie Poster

Re: simple ASP.Net Loginpage with SQL server

  #4  
3 Days Ago
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 : 1 Day Ago at 5:24 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Marketplace (Sponsored Links)
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 11:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC