I have a form that when filling the page, is filled with data, my idea is to replace the current data with the new ones, but doing some tests, and adding a Button without any operation, rewrites me again the fields, and whether it's empty or when I write inside the TexBox, but when I press the button it's completed again, I do not know if it's a browser theme or something I'm doing is wrong.
protected void btnModify_Click (object sender, EventArgs e) {
}
<div class="input-field col s10">
<asp:Button ID="btnModificar" CssClass="btn-large btn-block black center-block" runat="server" Text="Modificar" OnClick="btnModificar_Click" />
</div>
protected void Page_Load(object sender, EventArgs e)
{
if (Session ["login"]! = null) { User user = (User) Session ["login"];
string nombreCompleto = usuario.nombreCompleto();
Master.navSet.Text = "Bienvenido: " + nombreCompleto;
Master.ocultarLi = Visible;
txtUsuario.Text = usuario._usuario;
txtNombre.Text = usuario._nombre;
txtApellido.Text = usuario._apellido;
txtRut.Text = usuario._rut;
txtCorreo.Text = usuario._correo;
txtContraseña.Text = usuario._contraseña;
}
else
{
Response.Redirect("login.aspx");
}
}