protected void btnSave_Click(object sender, EventArgs e) { try { blog.blog_id = Convert.ToInt32(Request.QueryString["id"]); blog.blog_content = Server.HtmlEncode(hid_blog_body.Value.ToString()); blog.blog_title = Server.HtmlEncode(txtBlogTitle.Value.ToString()); blogedit.AdminBlogEdit(blog); Response.Redirect("~/Admin/BlogViewer.aspx?id=" + blog.blog_id.ToString()); } catch (Exception ex) { Response.Write(ex.ToString()); } }