validation for percentage

Posted by Saritha.rajeshkumar under C# on 4/25/2011 | Points: 10 | Views : 4364 | Status : [Member] | Replies : 2
hi this is saritha,
which validation should i use for percentage.




Responses

Posted by: Prabhakar on: 4/25/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi saritha . .


refer this link . .it's use full for u


http://www.java2s.com/Code/ASP/Validation-by-Control/ValidatingaPercentageUsingtheCustomValidatorControlVBnet.htm

Best Regard's
Prabhakar

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tijut2k on: 4/26/2011 [Member] Starter | Points: 25

Up
0
Down
you can use Range validator to validate percentage
eg : <asp:RangeValidator ID="vrfPercentage1" runat="server" ErrorMessage="Enter number between 0 - 100"
ControlToValidate="txtPercent" Style="display: none" MinimumValue="0" MaximumValue="100"
Type="Integer"></asp:RangeValidator>
<cc1:ValidatorCalloutExtender ID="vcePercentage1" runat="server" TargetControlID="vrfPercentage1">
</cc1:ValidatorCalloutExtender>

Best Regard's
Tiju Thankachan

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response