i have a page with a label and a textbox .with two button edit and update
when the user clicks on edit the labels get hidden and text box appears .And when he clicks on update the textbox disappears and label appears i hv achied makin the text box disappear and label appear but when i click on edit the textbox is not appearing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Institute : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
TextBox7.Visible = true;
Label16.Visible = false;
}
else
{
TextBox7.Visible = false;
Label16.Visible = true;
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Label16.Text= TextBox7.Text;
TextBox7.Visible = false;
}
protected void Button3_Click(object sender, EventArgs e)
{
if (!IsPostBack)
{
Label16.Visible = false;
TextBox7.Visible = true;
TextBox7.Text = Label16.Text;
}
}
}