protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["id"] != null) { AuthorEntity author = new AuthorEntity(); author = AF.GetAuthorByAuthorID(Convert.ToInt32(Request.QueryString["id"])); txtAuthorName.Text = author.AutherName; txtEmail.Text = author.AutherEmail; txtContact.Text = author.AutherConatct; Session["AuthorEditId"] = author.AuthorId; btnSaveAuthor.Text = "Update"; } if (Request.QueryString["did"] != null) { } } }