Backup/Discuz.Web/admin/UserControls/textarearesize.ascx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
namespace Discuz.Web.Admin
{
/// <summary>
/// TextareaResize 控件.
/// </summary>
public partial class TextareaResize : UserControl, Discuz.Control.IWebControl
{
public string controlname;
public string imagepath = "";
public int rows = 5;
public int cols = 45;
public bool is_replace = false;
public string maxlength = null;
protected void Page_Load(object sender, EventArgs e)
{
posttextarea.Rows = rows;
posttextarea.Cols = cols;
if (maxlength != null)
{
posttextarea.Attributes.Add("onkeyup", "return isMaxLen(this)");
posttextarea.Attributes.Add("maxlength", maxlength);
}
}
public string Text
{
set { posttextarea.InnerText = value; }
get
{
if (is_replace)
{
return posttextarea.InnerText.Replace("'", "''");
}
else
{
return posttextarea.InnerText;
}
}
}
private string _hintTitle = "";
public string HintTitle
{
get { return _hintTitle; }
set { _hintTitle = value; }
}
private string _hintInfo = "";
public string HintInfo
后面还有 34 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
