ASP.NET RequiredField Validator

Joined
Mar 2, 2011
Messages
2
Reaction score
0
Hi,

I added a RFV from code behind.

txtPriceName.ID="txtPriceName";
txtPriceName.Text = "";

rflPLname.ID = "rflPLname";
rflPLname.ControlToValidate = "txtPriceName";
rflPLname.ErrorMessage = "*";
rflPLname.ForeColor = Color.Red;

But its not validating
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,163
Messages
2,570,898
Members
47,437
Latest member
zillerehman

Latest Threads

Top