Updated : Simple ASP.Net Login Page

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

Join Date: Jan 2008
Posts: 3
Reputation: mkhmer is an unknown quantity at this point 
Solved Threads: 0
mkhmer mkhmer is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #141
Jan 23rd, 2008
Hi,

I talked about what is that"usename.txt" written for? Is that a cookies created when login success?

I did ask how to verify if user logged in or not.......it is about How to verify who is who? what user is logged in? How could I get the username which is currently logged in.

One more thing is that is it possible to redirect to the http_referer page after log in?

Regards,
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 645
Reputation: binoj_daniel is an unknown quantity at this point 
Solved Threads: 17
binoj_daniel's Avatar
binoj_daniel binoj_daniel is offline Offline
DaniWeb Expert

Re: Updated : Simple ASP.Net Login Page

 
0
  #142
Jan 23rd, 2008
Originally Posted by mkhmer View Post
Hi,

I talked about what is that"usename.txt" written for? Is that a cookies created when login success?

I did ask how to verify if user logged in or not.......it is about How to verify who is who? what user is logged in? How could I get the username which is currently logged in.

One more thing is that is it possible to redirect to the http_referer page after log in?

Regards,
UserName.text is the actual username text control which contains the original value typed by the user. Now if you want to track who is who. You can either use Cookies or Sessions.

Cookies and Sessions can be stored and retrieved to see who has logged in and you can redirect to the referring page after login.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3
Reputation: mkhmer is an unknown quantity at this point 
Solved Threads: 0
mkhmer mkhmer is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #143
Jan 24th, 2008
Could you please write down some code for me? I got no idea how to deal with that.....m ASP.Net newbies.

Thanks,
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1
Reputation: rasberry is an unknown quantity at this point 
Solved Threads: 0
rasberry rasberry is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #144
Mar 21st, 2008
i've created the login page.
i have problem to redirect page after successful login. the page redirect to default.aspx. how can i change the redirect page to page what i want after successful login?. i need my page to go to "~Client/Gan/Default.aspx".

i dont find the codes at login.aspx & web.config that i can change to redirect page. please help.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 1
Reputation: cthang is an unknown quantity at this point 
Solved Threads: 0
cthang cthang is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #145
Jun 23rd, 2008
Hi,

I tried your example and there are no errors but when I click on log in it doesn't do anything. It just wipes out the password. I am trying to connect to a remote sql 2005 server.

Do I put the imports, functions, and db connection in the loign.aspx.vb?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 645
Reputation: binoj_daniel is an unknown quantity at this point 
Solved Threads: 17
binoj_daniel's Avatar
binoj_daniel binoj_daniel is offline Offline
DaniWeb Expert

Re: Updated : Simple ASP.Net Login Page

 
0
  #146
Jun 24th, 2008
Originally Posted by cthang View Post
Hi,

I tried your example and there are no errors but when I click on log in it doesn't do anything. It just wipes out the password. I am trying to connect to a remote sql 2005 server.

Do I put the imports, functions, and db connection in the loign.aspx.vb?

Thanks
Whose reply are you referring here? If it is mine, then try to place a breakpoint and see if its coming to the function call and see what happens.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1
Reputation: arthi.n is an unknown quantity at this point 
Solved Threads: 0
arthi.n arthi.n is offline Offline
Newbie Poster

ASP.Net Login Page

 
0
  #147
Dec 16th, 2008
sir,
m arthi..m vry new to dis asp.net so can u plz tel me how to create simple login page n plz telme how to execute a asp.net code
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 645
Reputation: binoj_daniel is an unknown quantity at this point 
Solved Threads: 17
binoj_daniel's Avatar
binoj_daniel binoj_daniel is offline Offline
DaniWeb Expert

Re: Updated : Simple ASP.Net Login Page

 
0
  #148
Dec 16th, 2008
Please refer my article posted on the same issue long back.

http://www.coderewind.com/?categ&view_article=34
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 3
Reputation: RobinR is an unknown quantity at this point 
Solved Threads: 0
RobinR's Avatar
RobinR RobinR is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #149
Dec 30th, 2008
Binoj_daniel,

I tried to create the login page listed in your reply at http://www.coderewind.com/?categ&view_article=34. I am getting a error that the resource cannot be found. I have tried three times to get this to work. I am using VS 2008 because I don't see where you can create a "WEbsite" in VS 2005 as your first instruction indicates. Here is the error I get:

Server Error in '/SimpleLogin_coderewind' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /SimpleLogin_coderewind/logon.aspx


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
I have renamed and recreated (deleting all previous versions) the project and/or website three times. Why is the application saying it can not find the file? This doesn't make sense to me. I have the project saved in c:/inetpub/wwwroot and the website saved at c:/documents and settings/username/my documents/visual studio 2008/websites/simplelogin_coderewind

I have no idea why .net is telling me it can't find the file.

Can you tell me how to fix this?

Thanks,
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 645
Reputation: binoj_daniel is an unknown quantity at this point 
Solved Threads: 17
binoj_daniel's Avatar
binoj_daniel binoj_daniel is offline Offline
DaniWeb Expert

Re: Updated : Simple ASP.Net Login Page

 
0
  #150
Dec 30th, 2008
This is an issue with the path. See how it is mapping to an incorrect path. See if you can figure out.

Originally Posted by RobinR View Post
Binoj_daniel,

I tried to create the login page listed in your reply at http://www.coderewind.com/?categ&view_article=34. I am getting a error that the resource cannot be found. I have tried three times to get this to work. I am using VS 2008 because I don't see where you can create a "WEbsite" in VS 2005 as your first instruction indicates. Here is the error I get:



I have renamed and recreated (deleting all previous versions) the project and/or website three times. Why is the application saying it can not find the file? This doesn't make sense to me. I have the project saved in c:/inetpub/wwwroot and the website saved at c:/documents and settings/username/my documents/visual studio 2008/websites/simplelogin_coderewind

I have no idea why .net is telling me it can't find the file.

Can you tell me how to fix this?

Thanks,
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC