Datalist validations. . .

  • Thread starter Thread starter rvsraghu
  • Start date Start date
R

rvsraghu

I have a datalist control in my page and there is a Textbox to enter the
data like username or location. (Basically used to enter a single data at a
time.) now i want to validate the control in such a way that, if the user
didnt enter any data in the text box, user should be warned with the error.
.. .
please try to help me is there any way to validate the textbox.
Raghuram
 
Can't you just dump a RequiredFieldValidator within the ItemTemplate:

<ItemTemplate>
<asp:TextBox ID="x" Runat="server" />
<asp:RequiredFieldValidator ID="reqx" ControlToValidate="x" Runat="server"
ErrorMessage="*" />
</ItemTemplate>

?

karl
 
thankyou very much . . .
my problem got solved
there is one more thing

like in case of datagrid there is option to set no of records per page in
the same way is there any option to set the page records in datalist
 
Back
Top