validations for dropdownlist

Posted by Saritha.rajeshkumar under C# on 4/25/2011 | Points: 10 | Views : 1674 | Status : [Member] | Replies : 2
which validation should i use for dropdownlist.




Responses

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

Up
0
Down
HI Saritha.rajeshkumar
write ur full requirement . . . what u want . . which type validation u want to perform on Dropdownlist . .

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 RequiredFieldValidator for validating DropDownList

eg: <asp:RequiredFieldValidator ID="vrfConfirmation" runat="server" ErrorMessage=" Type ur Message"
SetFocusOnError="true" InitialValue="0" Display="None" ControlToValidate="ddlIsGovtEmp"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="avceConfirmation" runat="server" TargetControlID="vrfConfirmation">
</cc1:ValidatorCalloutExtender>

Best Regard's
Tiju Thankachan

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

Login to post response