954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

code for login control for asp.net using vb

here is the problem,
i wanted to create a login page, where in when a given username and password is created it should directly to the webpage showing the details. but if i give any other username and password it should be directed to the member sign in page. the place where i got stuck up is at using login controls. i just need the coding for that by using VB.

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 

ASP.NET 2.0 and up have the ASP.NET Membership Provider and the login controls, which will make this simple for you. Check out this walkthrough on MSDN: http://msdn.microsoft.com/en-us/library/879kf95c.aspx .

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

Hi...

do u wish to log in to ur webpage using only login controls or u can have textboxes and buttons...?

shobitha
Newbie Poster
5 posts since Jan 2009
Reputation Points: 10
Solved Threads: 1
 

using the login controls. with textboxes and button i got it

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 
using the login controls. with textboxes and button i got it

how did u validate the user id and passwd? can u post ur code pliz?

neel_patric
Newbie Poster
8 posts since Oct 2008
Reputation Points: 10
Solved Threads: 1
 

Run - WAT (Web Site Administrative Tool) to configure Membership - Role/Users account.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

i got everything but i'm getting a runtime error saying that there should be only one config selection and highlighting the the firstline in the asp code page of the loginform, the default page and the other webpage what went wrong

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 

Post your web.config

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 
how did u validate the user id and passwd? can u post ur code pliz?


using validating controls in the toolbox

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 

Can you post error message description or a snap shot?

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 
Can you post error message description or a snap shot?


actually i got to know where i made a mistake..........

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 
actually i got to know where i made a mistake..........

How can we find mistakes? You haven't post a code and also error message you got. Are you playing with us?

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 
How can we find mistakes? You haven't post a code and also error message you got. Are you playing with us?


sorry for this. what happened actually is... after i posted this i tried again and got to know where i made a mistake

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 

You should post what you've come up with. You never know, it might help other DaniWeb users out!

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

ok i understood now. from now onwards i will definetly post the errors definetly. actually i'm new to this forum

mshravs
Junior Poster in Training
75 posts since May 2009
Reputation Points: 10
Solved Threads: 1
 

asp.net/learn

dnanetwork
Practically a Master Poster
Banned
633 posts since May 2008
Reputation Points: 28
Solved Threads: 106
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You