SqlConnection cnn = new SqlConnection(Conn); SqlCommand cmd = new SqlCommand("Update tbl_Country set Name='"+txtName.Text.Trim()+"',CountryImg='"+Img+"' where Id="+id+"", cnn); cnn.Open(); cmd.ExecuteNonQuery(); FillGrid(); txtName.Text = ""; ClientScript.RegisterStartupScript(this.GetType(), "Alert", "<script language='javascript'>alert('Country Updated successfully')</script>"); //Request.QueryString.Remove("id"); //Request.QueryString.Clear(); PropertyInfo isReadOnly = typeof(System.Collections.Specialized.NameValueCollection).GetProperty("IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic); isReadOnly.SetValue(this.Request.QueryString, false, null); this.Request.QueryString.Remove("id"); cnn.Close();
var nameValueCollection = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString()); nameValueCollection.Remove(tenantPropertyName); string url = HttpContext.Current.Request.Path + "?" + nameValueCollection;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)