Click here to Skip to main content
15,892,072 members
Home / Discussions / ASP.NET
   

ASP.NET

 
PraiseRe: hi experts imgetting the error index out of rang pls help to solve Pin
John C Rayan12-May-16 4:24
professionalJohn C Rayan12-May-16 4:24 
QuestionForm not sending Pin
Member 87616674-May-16 5:32
Member 87616674-May-16 5:32 
QuestionRe: Form not sending Pin
Richard MacCutchan4-May-16 5:57
mveRichard MacCutchan4-May-16 5:57 
AnswerRe: Form not sending Pin
Member 87616674-May-16 7:27
Member 87616674-May-16 7:27 
GeneralRe: Form not sending Pin
Richard MacCutchan4-May-16 9:33
mveRichard MacCutchan4-May-16 9:33 
GeneralRe: Form not sending Pin
Member 87616674-May-16 10:07
Member 87616674-May-16 10:07 
GeneralRe: Form not sending Pin
Richard MacCutchan4-May-16 20:51
mveRichard MacCutchan4-May-16 20:51 
GeneralRe: Form not sending Pin
Member 87616675-May-16 0:04
Member 87616675-May-16 0:04 
As I understand it, the logic should be to read the database using While and End While. In the database, where there are two columns called 'password' and 'strEmail' (the exact same IDs as for the two form fields), the code should check that the email variable (strEmailValue) entered in the email form field is the same as the entry in the database column whose name is strEmail.

(strEmail is the name of the database column AND the email text field in the form, whereas strEmailValue is the variable entered by the user in the form text field.)

If the entry in the database column is the same as the variable entered by the user, then it is true that strEmailValue has been found - hence strEmailFound = True.

Likewise, for password. The code should check that the password variable (passwordValue) entered in the password form field is the same as the entry in the database column whose name is password.

(password is the name of the database column AND the password text field in the form, whereas passwordValue is the variable entered by the user in the form text field.)

If the entry in the database column is the same as the variable entered by the user, then it is true that passwordValue has been found - hence passwordFound = True.

So, I now have:

While reader.Read

If strEmailValue = reader("strEmail") Then
 
    strEmailFound = True

End If

If passwordValue = reader("password") Then
 
  passwordFound = True
 
   End While


Does the above make sense?

Thanks again.
GeneralRe: Form not sending Pin
Richard MacCutchan5-May-16 0:13
mveRichard MacCutchan5-May-16 0:13 
GeneralRe: Form not sending Pin
Member 87616675-May-16 4:14
Member 87616675-May-16 4:14 
GeneralRe: Form not sending Pin
Richard MacCutchan5-May-16 5:04
mveRichard MacCutchan5-May-16 5:04 
AnswerRe: Form not sending Pin
Richard Deeming4-May-16 7:29
mveRichard Deeming4-May-16 7:29 
GeneralRe: Form not sending Pin
Member 87616674-May-16 8:05
Member 87616674-May-16 8:05 
Questionhi experts..im using AutoMapper for store procedure getting an error pls help Pin
sunil32-May-16 19:16
sunil32-May-16 19:16 
QuestionChat Client Programming Pin
MD_AS2-May-16 5:25
MD_AS2-May-16 5:25 
AnswerRe: Chat Client Programming Pin
Nathan Minier3-May-16 1:51
professionalNathan Minier3-May-16 1:51 
AnswerRe: Chat Client Programming Pin
aarif moh shaikh4-May-16 2:16
professionalaarif moh shaikh4-May-16 2:16 
QuestionDelete the Custom Control on Submit Button in ASP.Net Pin
Amit Kumar (India)2-May-16 2:05
Amit Kumar (India)2-May-16 2:05 
AnswerRe: Delete the Custom Control on Submit Button in ASP.Net Pin
F-ES Sitecore2-May-16 22:48
professionalF-ES Sitecore2-May-16 22:48 
GeneralRe: Delete the Custom Control on Submit Button in ASP.Net Pin
Amit Kumar (India)2-May-16 23:32
Amit Kumar (India)2-May-16 23:32 
GeneralRe: Delete the Custom Control on Submit Button in ASP.Net Pin
F-ES Sitecore3-May-16 0:07
professionalF-ES Sitecore3-May-16 0:07 
QuestionWhy is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd29-Apr-16 6:12
professionalVimalsoft(Pty) Ltd29-Apr-16 6:12 
AnswerRe: Why is the Repeater Control Uploads... Pin
Richard Deeming29-Apr-16 7:03
mveRichard Deeming29-Apr-16 7:03 
GeneralRe: Why is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd29-Apr-16 9:49
professionalVimalsoft(Pty) Ltd29-Apr-16 9:49 
GeneralRe: Why is the Repeater Control Uploads... Pin
Kornfeld Eliyahu Peter30-Apr-16 23:50
professionalKornfeld Eliyahu Peter30-Apr-16 23:50 

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.