Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datagrid + required field validator + at insert/edit time

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
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...

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
 
please ignore this post...i got it working...

Thanks

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top