Click here to Skip to main content
15,883,674 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Export Access Reports [modified] Pin
Pallavi Bhoite27-Jun-07 1:44
Pallavi Bhoite27-Jun-07 1:44 
GeneralRe: Export Access Reports Pin
André Stroebel27-Jun-07 1:57
André Stroebel27-Jun-07 1:57 
GeneralRe: Export Access Reports Pin
Pallavi Bhoite27-Jun-07 2:12
Pallavi Bhoite27-Jun-07 2:12 
GeneralRe: Export Access Reports Pin
André Stroebel27-Jun-07 2:37
André Stroebel27-Jun-07 2:37 
QuestionMid function.......... Pin
n_gchaitra27-Jun-07 0:03
n_gchaitra27-Jun-07 0:03 
AnswerRe: Mid function.......... Pin
SHatchard27-Jun-07 0:14
SHatchard27-Jun-07 0:14 
GeneralRe: Mid function.......... Pin
n_gchaitra27-Jun-07 2:22
n_gchaitra27-Jun-07 2:22 
AnswerRe: Mid function.......... Pin
Craster27-Jun-07 1:35
Craster27-Jun-07 1:35 
You've used "<>" together with "or". Be very careful.
Consider the following:

If (Mid(Txtpno.Text, 1,1) <> "P") or (Mid(Txtpno.Text, 1,1) <> "F") then

end if

What you're actually saying is that if the first letter doesn't equal P or the first letter doesn't equal F then do something.

What fulfills the criteria of not having a first letter equal to P or not having a first letter equal to F? Absolutely everything is the answer.

If you're trying to do what I think you're trying to do, then you want to use 'and' operators instead of 'or'. It is however exceedingly messy and confusing and you'd be much better off abstracting it into a separate function that checks validity against each parameter one by one.
QuestionHow to sort data in datagrid? Pin
Amit Sk Sharma26-Jun-07 23:58
Amit Sk Sharma26-Jun-07 23:58 
AnswerRe: How to sort data in datagrid? Pin
rahul.net1127-Jun-07 0:31
rahul.net1127-Jun-07 0:31 
QuestionIFrames in ASP.NET Pin
J Liang26-Jun-07 23:31
J Liang26-Jun-07 23:31 
AnswerRe: IFrames in ASP.NET Pin
SHatchard27-Jun-07 0:06
SHatchard27-Jun-07 0:06 
GeneralRe: IFrames in ASP.NET Pin
J Liang28-Jun-07 17:58
J Liang28-Jun-07 17:58 
QuestionValidating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 22:37
ZeedijkMike26-Jun-07 22:37 
AnswerRe: Validating TextBox with Javascript generated value Pin
Eduard Keilholz26-Jun-07 22:42
Eduard Keilholz26-Jun-07 22:42 
GeneralRe: Validating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 22:48
ZeedijkMike26-Jun-07 22:48 
AnswerRe: Validating TextBox with Javascript generated value Pin
ZeedijkMike26-Jun-07 23:14
ZeedijkMike26-Jun-07 23:14 
GeneralRe: Validating TextBox with Javascript generated value Pin
Eduard Keilholz26-Jun-07 23:18
Eduard Keilholz26-Jun-07 23:18 
Questionhelp plz [modified] Pin
Devkranth Kishore Vanja26-Jun-07 22:33
Devkranth Kishore Vanja26-Jun-07 22:33 
AnswerRe: help plz Pin
ZeedijkMike26-Jun-07 22:41
ZeedijkMike26-Jun-07 22:41 
GeneralRe: help plz Pin
Devkranth Kishore Vanja26-Jun-07 23:09
Devkranth Kishore Vanja26-Jun-07 23:09 
AnswerRe: help plz Pin
mohantfor.net27-Jun-07 0:37
mohantfor.net27-Jun-07 0:37 
Questioncreating object inside a loop Pin
raj_developer26-Jun-07 20:40
raj_developer26-Jun-07 20:40 
AnswerRe: creating object inside a loop Pin
Viral Upadhyay26-Jun-07 21:28
Viral Upadhyay26-Jun-07 21:28 
QuestionRe: creating object inside a loop Pin
Urs Enzler26-Jun-07 22:57
Urs Enzler26-Jun-07 22:57 

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.