protected void Page_Load(Sender object,EventArgs e) { If(!Page.IsPostBack) { textBox1.Enabled=False; //textBox1.ReadOnly=True;//optional } } protected void BtnEdit_Click(Sender object,EventArgs e) { textBox1.Enabled=True; //textBox1.ReadOnly=False;//optional }
$(document).ready(function(){ $("input#btn").click(function(){ $("input#txt").hide(); }); }); <input type="text" id="txt" /> <input type="button" id="btn" value="Click Me" onclick="$('#txt').hide()"/>
textBox1.Enabled=False;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)