TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
tash
NA
1
0
requiredfieldvalidator at runtime
Dec 3 2008 11:01 AM
hi,
i'm creating a certain number of textboxes at runtime and i then want to make sure the user enters some text into them. i have this code but validation is not occuring.
[CODE]
for (int i = 1; i <= this.participants; i++)
{
TextBox tb = new TextBox();
tb.ID = "tbName" + i;
RequiredFieldValidator rfv = new RequiredFieldValidator();
rfv.ID = "required" + i;
rfv.ControlToValidate = tb.ID;
rfv.ErrorMessage = "Name is a required field";
rfv.Enabled = true;
[/CODE]
Reply
Answers (
3
)
multi source+single target+cross page posting
displacement of text boxes and button control