protected void Page_Load(object sender, EventArgs e) { int x = Convert.ToInt32(Request.QueryString["STDID"]); Response.Write(x); StudentEntity std = new StudentEntity(); std.ID = x; StudentBusiness.DeleteStdBusiness(std.ID); Response.Redirect("StudentList.aspx"); }