Required Field Validation Server Side

sherisson

New Member
I am planning to fire the required filed validation in my button click event.\[code\]<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="RadDatePicker3" OnLoad="RequiredFieldValidator10_Load" Display="Dynamic" ForeColor="Red">*</asp:RequiredFieldValidator> protected void RequiredFieldValidator10_Load(object sender, EventArgs e) { if (IsPostBack) { if (RadDatePicker4.DbSelectedDate == null || RadDatePicker3.DbSelectedDate == null) { RequiredFieldValidator10.ErrorMessage = "*"; RequiredFieldValidator11.ErrorMessage = "*"; } } }\[/code\]On my button click I wnat to check the required field validation...any suggestions??The above code is not working for me.
 
Back
Top