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