Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
i have a grid inside i have 3 bound columns
empno should allow only 20,21 ,if i enter not 20,21 then i want to show error message
dim x as boolean=false
so in row updating event
if(empno==20 ||empno==21)
   lblmessage.text="please enter 20,21."
problem is lblmessage is was not displaying the text in runtime. please help me
Posted 4-Oct-12 4:18am
Edited 4-Oct-12 4:25am
DaveAuld at 4-Oct-12 10:47am
Where are you trying to perform this? What language are you trying to do this in? you have a right mishmash of things going on, and it is not clear.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Look at your code to test x, you are assigning a value not testing a value;
if (x=false)
You should have;
if (x==false)
sai.2012 at 4-Oct-12 10:32am
end if
ridoy at 4-Oct-12 16:15pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 383
1 OriginalGriff 304
2 George Jonsson 258
3 Animesh Datta 130
4 Shemeemsha RA 128
0 OriginalGriff 6,099
1 Sergey Alexandrovich Kryukov 5,411
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522

Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100