62,047
社区成员
发帖
与我相关
我的任务
分享
protected override void OnPreRender(EventArgs e)
{
if (this._controlType == "DateTime" && (BB.Get("action") == "insert" || BB.Get("action") == "copy"))
{
this.Text = DateTime.Now.ToString();
}
if (this._controlType == "UpdateDate" && BB.Get("action") == "update")
{
this.Text = DateTime.Now.ToString();
}
if (this._controlType == "InputUser" && BB.Get("action") == "insert")
{
this.Text = BB.LoginKey("Name") != null ? BB.LoginKey("Name") : String.Empty;
}
if (this._controlType == "InputUserName" && BB.Get("action") == "insert")
{
this.Text = BB.LoginKey("Name") != null ? BB.LoginKey("Name") : String.Empty;
}
if (this._controlType == "InputUserID" && (BB.Get("action") == "insert" || BB.Get("action") == "copy"))
{
this.Text = BB.LoginKey("UserID") != null ? BB.LoginKey("UserID") : String.Empty;
}
if (this._controlType == "Password")
{
this.TextMode = TextBoxMode.Password;
}
if (this._controlType == "MultiLine")
{
this.TextMode = TextBoxMode.MultiLine;
}
base.OnPreRender(e);
}