Click here to Skip to main content
15,915,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: .net database connectivity problem in visual studio Pin
Abhijit Jana21-Jun-09 19:36
professionalAbhijit Jana21-Jun-09 19:36 
Questionprinting crystal report viewer in visual studio.net [modified] Pin
iranban21-Jun-09 8:33
iranban21-Jun-09 8:33 
Questionlogin using sql table and disable certain options according 2 de user... Pin
<<Tash18>>20-Jun-09 23:25
<<Tash18>>20-Jun-09 23:25 
AnswerRe: login using sql table and disable certain options according 2 de user... Pin
dan!sh 20-Jun-09 23:32
professional dan!sh 20-Jun-09 23:32 
AnswerRe: login using sql table and disable certain options according 2 de user... Pin
Manas Bhardwaj20-Jun-09 23:49
professionalManas Bhardwaj20-Jun-09 23:49 
GeneralRe: login using sql table and disable certain options according 2 de user... Pin
<<Tash18>>21-Jun-09 0:02
<<Tash18>>21-Jun-09 0:02 
GeneralRe: login using sql table and disable certain options according 2 de user... Pin
dan!sh 21-Jun-09 0:08
professional dan!sh 21-Jun-09 0:08 
GeneralRe: login using sql table and disable certain options according 2 de user... Pin
Manas Bhardwaj21-Jun-09 0:11
professionalManas Bhardwaj21-Jun-09 0:11 
Ok, let me make it more simple for you.

1.) Create a table(UserDetails) something like this

UserID
UserName
Password
IsAdmin

2.) Create a Stored Procedure with parameters username, password

Select * from UserDetails Where UserName = @UserName and Password = @Password


3.) Call this stored procedure from your C# code.
4.) Check if the result contains any row. If it does than the user has been authenticated[^].
5.) If the user has been authenticated, check if he is authorised for Administrator persmission. You will do this by checking the value of IsAdmin.

Well, this is the maxmimum I can do.
And I again suggest you to buy a book on C# and start reading. You may also look at some of the starter article at CP.Rose | [Rose]

Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

AnswerRe: login using sql table and disable certain options according 2 de user... Pin
Christian Graus21-Jun-09 9:57
protectorChristian Graus21-Jun-09 9:57 
Questionadd dynamic button Pin
polycom12320-Jun-09 22:21
polycom12320-Jun-09 22:21 
AnswerRe: add dynamic button Pin
dan!sh 20-Jun-09 23:25
professional dan!sh 20-Jun-09 23:25 
AnswerRe: add dynamic button Pin
Abhijit Jana20-Jun-09 23:28
professionalAbhijit Jana20-Jun-09 23:28 
GeneralRe: add dynamic button Pin
polycom12321-Jun-09 0:41
polycom12321-Jun-09 0:41 
GeneralRe: add dynamic button Pin
N a v a n e e t h21-Jun-09 5:11
N a v a n e e t h21-Jun-09 5:11 
GeneralRe: add dynamic button Pin
Abhijit Jana21-Jun-09 5:41
professionalAbhijit Jana21-Jun-09 5:41 
GeneralRe: add dynamic button Pin
N a v a n e e t h21-Jun-09 18:09
N a v a n e e t h21-Jun-09 18:09 
GeneralRe: add dynamic button Pin
polycom12321-Jun-09 10:49
polycom12321-Jun-09 10:49 
GeneralRe: add dynamic button Pin
N a v a n e e t h21-Jun-09 16:34
N a v a n e e t h21-Jun-09 16:34 
GeneralRe: add dynamic button Pin
polycom12321-Jun-09 19:37
polycom12321-Jun-09 19:37 
AnswerRe: add dynamic button Pin
Christian Graus21-Jun-09 10:49
protectorChristian Graus21-Jun-09 10:49 
QuestionLogin using sqldatabase Pin
<<Tash18>>20-Jun-09 21:00
<<Tash18>>20-Jun-09 21:00 
AnswerRe: Login using sqldatabase Pin
Manas Bhardwaj20-Jun-09 21:26
professionalManas Bhardwaj20-Jun-09 21:26 
QuestionQuestions and answers about .Net for dummies Pin
HKLC20-Jun-09 18:22
HKLC20-Jun-09 18:22 
AnswerRe: Questions and answers about .Net for dummies Pin
N a v a n e e t h20-Jun-09 19:17
N a v a n e e t h20-Jun-09 19:17 
AnswerRe: Questions and answers about .Net for dummies Pin
Manas Bhardwaj20-Jun-09 21:28
professionalManas Bhardwaj20-Jun-09 21:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.