DotNetGnat
Programmer
Guys,
i am trying to put the add new record option for the datagrid...i also have a dropdown lists besides textbox...
my question is how can i put the required field validators to check that some text fields are not empty and to check that the first option is not selected for the dropdown...
i tried but it did not show up the error message...i think i need to do this at the itemdatabound level...can someone show me sample code...
-DNG
i am trying to put the add new record option for the datagrid...i also have a dropdown lists besides textbox...
my question is how can i put the required field validators to check that some text fields are not empty and to check that the first option is not selected for the dropdown...
Code:
<FooterTemplate>
<asp:DropDownList runat="server" id="mylist" DataValueField="StatusID" DataTextField="StatusName" DataSource='<%# Businessstat() %>' />
[red]
' i thought of adding <asp:RequiredFieldValidator> here...does it work...
[/red]
</FooterTemplate>
i tried but it did not show up the error message...i think i need to do this at the itemdatabound level...can someone show me sample code...
-DNG