login page with roles

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

Join Date: Jul 2009
Posts: 36
Reputation: chrispaul8676 is an unknown quantity at this point 
Solved Threads: 0
chrispaul8676 chrispaul8676 is offline Offline
Light Poster

login page with roles

 
0
  #1
Jul 6th, 2009
hi,
there, i am doing a and it needs login page. I have a 2 textboxes, one for user id and the other for password. Using this two textboxes, I need to identify the three roles that i am using. This includes manager, delivery boy and customer to redirect to their respective page. My deadline is on fri this week and i need to come up with the right codes. I don't know what to do and where to start. i can't solve this matter. Can someone tell me step by step of what to do? I desperately need help. I am using ASP.NET(VB) and MSSQL.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 5
Reputation: adamdk is an unknown quantity at this point 
Solved Threads: 1
adamdk adamdk is offline Offline
Newbie Poster

Re: login page with roles

 
0
  #2
Jul 6th, 2009
Why not use the built in login tools?

Website -> Asp.net Configuration
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,187
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 571
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: login page with roles

 
0
  #3
Jul 6th, 2009
I posted a C# winform example @ http://www.daniweb.com/code/snippet1244.html which may help get you started. Conceptually its the same in forms or asp.net as far as looking up a user and assigning roles. Port it over to ASP.NET/VB and post back on the thread if you have any issues and we'll go from there.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 36
Reputation: chrispaul8676 is an unknown quantity at this point 
Solved Threads: 0
chrispaul8676 chrispaul8676 is offline Offline
Light Poster

Re: login page with roles

 
0
  #4
Jul 6th, 2009
I am using ASP.NET with VB. Will this sample work out if i try to change C# codings to VB?
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 36
Reputation: chrispaul8676 is an unknown quantity at this point 
Solved Threads: 0
chrispaul8676 chrispaul8676 is offline Offline
Light Poster

Re: login page with roles

 
0
  #5
Jul 6th, 2009
I can use the web configuration, but i have tried it before and it doesn't work. please assist me. I am using ASP.NET with VB
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,187
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 571
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: login page with roles

 
0
  #6
Jul 6th, 2009
Help us help you. Make an attempt to approach the problem and post your sample code.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 36
Reputation: chrispaul8676 is an unknown quantity at this point 
Solved Threads: 0
chrispaul8676 chrispaul8676 is offline Offline
Light Poster

Re: login page with roles

 
0
  #7
Jul 6th, 2009
i am using the ASP.NET C# which you gave. I got this error that says, 'unexpected preprocessor directive'. It is at this part as below:
#endif . please help me out
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,187
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 571
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: login page with roles

 
0
  #8
Jul 6th, 2009
Remove the #if and #endif
Scott Knake
Custom Software Development
Apex Software, Inc.
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



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

©2003 - 2009 DaniWeb® LLC