MarkItUp.SingleUserBlog.Web/UserControls/CommentForm.ascx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MarkItUp.SingleUserBlog.Services;
using MarkItUp.SingleUserBlog.Common;
using MarkItUp.SingleUserBlog.Web;
using SUBWeb;
public delegate void CommentAddedEventHandler(CommentForm sender, FeedbackItem comment);
public delegate void CommentErrorEventHandler(CommentForm sender, string errorMessage);
public enum CommentMode : short {
Feedback = 1,
BlogComment = 2
}
/// <summary>
/// Codebehind for the CommentForm.
/// </summary>
/// <remarks>
/// The profile code was added to support the use of .Profile after WAP conversion as
/// suggested in the migration tutorial at http://webproject.scottgu.com.
/// </remarks>
public partial class CommentForm : System.Web.UI.UserControl {
private ProfileCommon _profile = new ProfileCommon();
private string _defaultSubject = string.Empty;
public event CommentAddedEventHandler CommentAdded;
public event CommentErrorEventHandler CommentError;
public ProfileCommon Profile {
get { return this._profile; }
set { this._profile = value; }
}
private string RandomText {
get {
if (Session["Comment_RandomText"] == null) {
ResetRandomText();
}
return Session["Comment_RandomText"].ToString().ToUpper();
}
set {
Session["Comment_RandomText"] = (value ?? string.Empty).ToUpper();
}
}
public CommentMode Mode {
get {
if (ViewState["CommentMode"] == null) {
return CommentMode.BlogComment;
}
后面还有 124 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
