Click here to Skip to main content
15,901,426 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Grab value of input control via Page.FindControls - issue Pin
DeepToot24-Apr-07 6:59
DeepToot24-Apr-07 6:59 
Questionwindow.confirm Pin
Imran Khan Pathan24-Apr-07 4:05
Imran Khan Pathan24-Apr-07 4:05 
AnswerRe: window.confirm Pin
Arun.Immanuel24-Apr-07 4:15
Arun.Immanuel24-Apr-07 4:15 
GeneralRe: window.confirm Pin
Sujit Gupta24-Apr-07 7:51
Sujit Gupta24-Apr-07 7:51 
AnswerRe: window.confirm Pin
badgrs24-Apr-07 5:51
badgrs24-Apr-07 5:51 
QuestionPlz find out error in my code. Pin
Care Career24-Apr-07 2:27
Care Career24-Apr-07 2:27 
AnswerRe: Plz find out error in my code. Pin
Colin Angus Mackay24-Apr-07 2:32
Colin Angus Mackay24-Apr-07 2:32 
AnswerRe: Plz find out error in my code. Pin
Russell Jones24-Apr-07 2:42
Russell Jones24-Apr-07 2:42 
I'd probably use something like

if ((ds.Tables["CreateAccount"].Select(string.format("User_Name = '{0}' AND Password = '{1}'", new object []{txtUser.Text,txtPassword.text})).length ==1)
//login message
else
//failed message


except i wouldn't process the message like that, i'd do a query such as:

Select count(*) from users where User_Name = <username> AND Password = <password>

and check that the return value was 1. The danger would be that someone will pick up your asp.net login function and deploy it in winforms where the client would have a list of all the username / password entries in the database.

Russell
AnswerRe: Plz find out error in my code. Pin
Md. Ismail24-Apr-07 2:50
Md. Ismail24-Apr-07 2:50 
AnswerRe: Plz find out error in my code. Pin
Dave Sexton24-Apr-07 3:16
Dave Sexton24-Apr-07 3:16 
GeneralRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:11
DeepToot24-Apr-07 5:11 
GeneralRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:13
DeepToot24-Apr-07 5:13 
GeneralRe: Plz find out error in my code. Pin
Dave Sexton24-Apr-07 10:36
Dave Sexton24-Apr-07 10:36 
AnswerRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:21
DeepToot24-Apr-07 5:21 
AnswerRe: Plz find out error in my code. Pin
Sujit Gupta24-Apr-07 7:57
Sujit Gupta24-Apr-07 7:57 
Questionprint xsl Pin
TheEagle24-Apr-07 2:13
TheEagle24-Apr-07 2:13 
QuestionConfigurationsetting Class? Pin
Care Career24-Apr-07 0:25
Care Career24-Apr-07 0:25 
AnswerRe: Configurationsetting Class? Pin
Colin Angus Mackay24-Apr-07 0:36
Colin Angus Mackay24-Apr-07 0:36 
AnswerRe: Configurationsetting Class? Pin
Sandeep Kumar24-Apr-07 0:50
Sandeep Kumar24-Apr-07 0:50 
AnswerRe: Configurationsetting Class? Pin
Sathesh Sakthivel24-Apr-07 1:40
Sathesh Sakthivel24-Apr-07 1:40 
QuestionAdding a row to ASP.NET table programatically Pin
Rohde24-Apr-07 0:01
Rohde24-Apr-07 0:01 
AnswerRe: Adding a row to ASP.NET table programatically Pin
Spunky Coder24-Apr-07 0:48
Spunky Coder24-Apr-07 0:48 
GeneralRe: Adding a row to ASP.NET table programatically Pin
Rohde24-Apr-07 1:06
Rohde24-Apr-07 1:06 
GeneralRe: Adding a row to ASP.NET table programatically Pin
enjoycrack24-Apr-07 1:12
enjoycrack24-Apr-07 1:12 
GeneralRe: Adding a row to ASP.NET table programatically Pin
Rohde24-Apr-07 1:58
Rohde24-Apr-07 1:58 

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.