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,342
Messages
2,571,409
Members
48,798
Latest member
massivestack

Latest Threads

Top