Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
gridview

column_name(total_AMOUNT)
10000000(Random amount/dynamic)




textbox1: entry any amount but it must be less than gridview(total_AMOUNT) .

how to check it.
Posted
Comments
Thanks7872 1-Sep-14 1:57am    
What have you tried so far? Any effort from your side?
10923679 1-Sep-14 2:11am    
so can u help me with this ?
10923679 1-Sep-14 2:00am    
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="Maximum value 100000"
Operator="LessThanEqual" Type="Integer" ValueToCompare="100000">




CompareValidator1.ValueToCompare = Label1.Text;
CompareValidator1.ErrorMessage = string.Format("Maximum value is {0}", Label1.Text);


but this is fixed size.. and i tried with label and text
i need it to compare from gridview value. which i will check through textbox

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900