protected void btnReply_Click(object sender, EventArgs e) { ForumTopic forumTopic = ForumManager.GetTopicByID(this.TopicID); if (forumTopic != null) { if (!ForumManager.IsUserAllowedToCreatePost(NopContext.Current.User, forumTopic)) { string loginURL = CommonHelper.GetLoginPageURL(true); Response.Redirect(loginURL); } string newForumPostURL = SEOHelper.GetNewForumPostURL(forumTopic.ForumTopicID); Response.Redirect(newForumPostURL); } }