| Author: vipul 28 Aug 2008 | Member Level: Diamond | Rating:  Points: 6 |
hi, you use4d this way <asp:DropDownList ID="ddlSiteMaster" runat="server" Width="168px"> </asp:DropDownList> <asp:RequiredFieldValidator ID="rfvProdSitea" runat="server" ControlToValidate="ddlSiteMaster" Display="None" ErrorMessage="Please select Product Site" SetFocusOnError="True" ValidationGroup="pa" InitialValue="0">
here in the validator i set InitialValue = 0 for the drop down so you set your -Choose one- 's value to 0
vipul, http://dongavipul.blogspot.com
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: sujit kumar biswal 28 Aug 2008 | Member Level: Gold | Rating:  Points: 3 |
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="select a value" ControlToValidate="DropDownList1"></asp:RequiredFieldValidator>
|