HDZ
08-06-2008, 09:41 AM
I've coded a reset button in asp.net using C#, it's working perfectly, the only wrong thing is that i couldn't disable the submit behaviour on the button so after the button is clicked it resets all fields but giving the impression of submit in the status bar. Knowing that UseSubmitBehaviour is set to false.
This is my code:
protected void btnReset_Click(object sender, EventArgs e)
{ // Reset button to clear all controllers (text boxes )
txtFirstName.Text = String.Empty;
txtMiddleName.Text = String.Empty;
txtLastName.Text = String.Empty;
}
I appreciate any prompt help,
HDZ
This is my code:
protected void btnReset_Click(object sender, EventArgs e)
{ // Reset button to clear all controllers (text boxes )
txtFirstName.Text = String.Empty;
txtMiddleName.Text = String.Empty;
txtLastName.Text = String.Empty;
}
I appreciate any prompt help,
HDZ