By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

Help attaching validator controls to an undetermined number of contorls in a repeater

P: n/a
Hi all,

I have a repeater that is going to show a number of text boxes -two per row
in fact.

Does anyone know how I could go about ensuring that the user can't proceed
without each and every textbox having something in it?

I don't have any javascript skills so I'm hoping that I can use the
validator controls that come with asp.net

Thanks to anyone who can advise

Simon
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

same way as you have TextBoxes in ItemTemplates of Repeater, put
RequiredFieldValidators there to validate the TextBox. They are "repeated"
similarly as TextBoxes are.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"Simon" <sh856531@microsofts_free_email_service.com> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
Hi all,

I have a repeater that is going to show a number of text boxes -two per row in fact.

Does anyone know how I could go about ensuring that the user can't proceed
without each and every textbox having something in it?

I don't have any javascript skills so I'm hoping that I can use the
validator controls that come with asp.net

Thanks to anyone who can advise

Simon

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.