Wednesday, March 28, 2012

Validate Details View

Is it possible to validate text fields with in a Details View. Do I need to to it in the Template editor? if so how?

Hi nhaas:

<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
ValidationGroup="InitiateJobEdit"
ControlToValidate="DropDownList1"
InitialValue="0" Text="(select one)" Runat="Server" /
in the EditItemTemplate source

And call Page.Validator in your update event.


Thanks I will try it in the morning!

No comments:

Post a Comment