protected void btnUpdate_Click(object sender, EventArgs e) { int ShowId = int.Parse(Request.QueryString["ShowId"]); string name = txtName.Text; string URL = txtURL.Text; string description = txtDesc.Text; string price = txtPrice.Text; string response = ShowController.CheckUpdateShow(ShowId, name, URL, description, price); if (response == "") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Update Success')", true); Response.Redirect("../Home/HomePage.aspx"); return; } else { lblError.Text = response; } }