Click here to Skip to main content
15,917,456 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to pass gridview textbox value to javascript Pin
Dinesh Mani8-Dec-09 23:54
Dinesh Mani8-Dec-09 23:54 
GeneralRe: how to pass gridview textbox value to javascript Pin
ravihd9-Dec-09 0:59
ravihd9-Dec-09 0:59 
GeneralRe: how to pass gridview textbox value to javascript Pin
Dinesh Mani9-Dec-09 1:17
Dinesh Mani9-Dec-09 1:17 
Questionerror in showing blogs in the web site Pin
Amit Spadez8-Dec-09 23:29
professionalAmit Spadez8-Dec-09 23:29 
AnswerRe: error in showing blogs in the web site Pin
Dinesh Mani8-Dec-09 23:46
Dinesh Mani8-Dec-09 23:46 
GeneralRe: error in showing blogs in the web site Pin
Amit Spadez9-Dec-09 0:07
professionalAmit Spadez9-Dec-09 0:07 
GeneralRe: error in showing blogs in the web site Pin
rahuuul179-Dec-09 0:12
rahuuul179-Dec-09 0:12 
GeneralRe: error in showing blogs in the web site Pin
Dinesh Mani9-Dec-09 0:22
Dinesh Mani9-Dec-09 0:22 
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 

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.