protected void btnReply_Click(object sender, EventArgs e)
        {
            var threadGUID = this.GetRedirectParameter("threadGUID", false);

            if (threadGUID != null && !String.IsNullOrEmpty(SessionProps.UserName)
                && SessionProps.HasPermission("USER")
                && Header.Text.Trim().Length > 0 && Body.Text.Trim().Length > 0)
            {
                using (var db = Global.GetConnection())
                {
                    var replyForum = db.Ext_Forum.Single(f => f.GUID == new Guid(threadGUID.ToString()));

                    var forum = new Ext_Forum();
                    forum.Header = Header.Text;
                    forum.Body = Body.Text;
                    forum.PostedDate = DateTime.Now;
                    forum.ResponseToGUID = replyForum.GUID;
                    forum.ForumCategoryGUID = replyForum.ForumCategoryGUID;
                    forum.UserGUID = SessionProps.UserGuid;

                    db.Ext_Forum.InsertOnSubmit(forum);

                    db.SubmitChanges();

                    WebControlManager.RedirectWithQueryString("ForumViewThread.aspx", new string[] { "threadGUID" }, new string[] { replyForum.GUID.ToString() });
                }
            }
            else
            {
                lblMessage.Text =
                    "Det gick inte att spara inlägget. Är du inloggad? Har du fyllt i både rubrik och brödtext?";
            }
        }
		private void detach_Ext_Forum(Ext_Forum entity)
		{
			this.SendPropertyChanging();
			entity.Sys_User = null;
		}
 partial void DeleteExt_Forum(Ext_Forum instance);
 partial void UpdateExt_Forum(Ext_Forum instance);
 partial void InsertExt_Forum(Ext_Forum instance);
		private void detach_Ext_Forum(Ext_Forum entity)
		{
			this.SendPropertyChanging();
			entity.Ext_ForumCategory = null;
		}