protected void btnAlterar_Click(object sender, EventArgs e) { Categoria objCategoria = new Categoria(); objCategoria.alterar(lblCategoria.Text, txtNomeCategoria.Text); Response.Redirect(Request.RawUrl); }
protected void btnAlterar_Click1(object sender, EventArgs e) { Categoria objCategoria = new Categoria(); objCategoria.alterar(txtidCategoria.Text, txtdescricao.Text); Response.Redirect(Request.RawUrl); }