Clear the Validators

M

Mariano

Greetings Friends, A little help pls...I develop a form using
requiredvalidators , but I have a problem when i do postback the values, by
instance, to the saving data, and clearing the textbox, the validator's
errormessages appear. It's like that my code:
// the save_data run ok, the problem is after saving, the page appear with
textbox in blank ( it's ok) but the errormessage of validators appear. help
me pls
protected void Page_Load(object sender, EventArgs e)

{

if (IsPostBack)

{ save_data(); }

init_textbox();


}

private voi init_textbox()

{

this.txt_user.text=""; this.txt_lastname.text="";

}
 

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,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top