Click here to Skip to main content
15,889,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPaging toGridView Pin
rahul.net118-Dec-09 23:13
rahul.net118-Dec-09 23:13 
AnswerRe: Paging toGridView Pin
Blue_Boy8-Dec-09 23:30
Blue_Boy8-Dec-09 23:30 
GeneralRe: Paging toGridView Pin
rahul.net118-Dec-09 23:41
rahul.net118-Dec-09 23:41 
GeneralRe: Paging toGridView Pin
Blue_Boy8-Dec-09 23:44
Blue_Boy8-Dec-09 23:44 
Questionerror in the login web page Pin
Amit Spadez8-Dec-09 23:06
professionalAmit Spadez8-Dec-09 23:06 
AnswerRe: error in the login web page Pin
Blue_Boy8-Dec-09 23:34
Blue_Boy8-Dec-09 23:34 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:10
professionalAmit Spadez9-Dec-09 0:10 
AnswerRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:36
Dinesh Mani9-Dec-09 0:36 
Since you are using the username and password directly in the select query your query might fail if there is any mismatch between the input and the database value. Depending on the server's case sensitivity settings, 'ABC' might not be equal to 'abc'. Also check if your passwords match exactly, no spaces on the ends.

Also, your design is perfect for SQL injection. You need to atleast sanitize your data before using it in your query! A better suggestion would be to use stored procedures.

If you cannot do either of this just get the userid and password based on just the user id. Then check the user password against the database password in code, just like its done now. Even here you need to sanitize the username before you use it in your query.
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:42
professionalAmit Spadez9-Dec-09 0:42 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:46
Dinesh Mani9-Dec-09 0:46 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:49
professionalAmit Spadez9-Dec-09 0:49 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:52
Dinesh Mani9-Dec-09 0:52 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:56
professionalAmit Spadez9-Dec-09 0:56 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 1:01
Dinesh Mani9-Dec-09 1:01 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 1:19
professionalAmit Spadez9-Dec-09 1:19 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 1:20
Dinesh Mani9-Dec-09 1:20 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 1:21
professionalAmit Spadez9-Dec-09 1:21 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 1:29
Dinesh Mani9-Dec-09 1:29 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 1:53
professionalAmit Spadez9-Dec-09 1:53 
QuestionGet date from a calendar in TextBox of formview Pin
rummer8-Dec-09 22:39
rummer8-Dec-09 22:39 
QuestionHTML Editor Pin
Any_India8-Dec-09 21:28
Any_India8-Dec-09 21:28 
AnswerRe: HTML Editor Pin
Petr Pechovic8-Dec-09 21:35
professionalPetr Pechovic8-Dec-09 21:35 
GeneralRe: HTML Editor Pin
Any_India8-Dec-09 22:19
Any_India8-Dec-09 22:19 
GeneralRe: HTML Editor Pin
Petr Pechovic8-Dec-09 22:30
professionalPetr Pechovic8-Dec-09 22:30 
GeneralRe: HTML Editor Pin
Any_India9-Dec-09 0:10
Any_India9-Dec-09 0:10 

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.