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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top