Skip to content

Display validation error for dropdownlist linked with DB

Asked Jul 2, 2016, 6:42 AM EDT1 answer
Share
LinkedInX
This the code I tried but the validation message not appeared  
 
Select ModuleID
*
runat="server" ValidationGroup="click" />
SelectCommand="SELECT [MId], [MName] FROM [Modules]">

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Try to add InitialValue="Please select" to your required field validator to make it work.
    0