MarkItUp.SingleUserBlog/UI/WebParts/FavoritesEditorPart.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
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;
namespace MarkItUp.SingleUserBlog.UI.WebParts {
public class FavoritesEditorPart : EditorPart {
TextBox txtDisplayName, txtDescription, txtUrl;
FavoritesWebPart FavoritePart {
get { return (FavoritesWebPart)this.WebPartToEdit; }
}
protected override void CreateChildControls() {
Controls.Clear();
Label lbl = new Label();
lbl.ApplyStyle(this.Zone.LabelStyle);
lbl.Text = "Display Name: ";
lbl.Width = 120;
this.Controls.Add(lbl);
txtDisplayName = new TextBox();
txtDisplayName.Columns = 30;
this.Controls.Add(txtDisplayName);
AddLineBreak();
lbl = new Label();
lbl.ApplyStyle(this.Zone.LabelStyle);
lbl.Text = "Description: ";
lbl.Width = 120;
this.Controls.Add(lbl);
txtDescription = new TextBox();
txtDescription.TextMode = TextBoxMode.MultiLine;
txtDescription.Rows = 5;
txtDescription.Columns = 30;
this.Controls.Add(txtDescription);
AddLineBreak();
lbl = new Label();
lbl.Text = "Url: ";
lbl.ApplyStyle(this.Zone.LabelStyle);
lbl.Width = 120;
this.Controls.Add(lbl);
txtUrl = new TextBox();
txtUrl.Columns = 30;
this.Controls.Add(txtUrl);
后面还有 40 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
