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

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top