ClassLibraryWeiBao/WebSurvey/WebQuestion.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace sstchur.web.survey
{
using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
[ToolboxItem(false)]
public class WebQuestion : WebControl
{
private bool m_bRequired;
protected string m_strRequiredText;
protected string m_strAnswer;
private string m_strId;
private string m_strType;
public WebQuestion()
{
}
protected WebQuestion(string strId, string strType)
{
this.m_strId = strId;
this.m_strType = strType;
}
protected WebQuestion(string strId, string strType, bool bRequired, string strRequiredText, string strQuestion)
{
this.m_strId = strId;
this.m_strType = strType;
this.m_bRequired = bRequired;
this.m_strRequiredText = strRequiredText;
this.Controls.Add(new LiteralControl("<p>"));
Label child = new Label();
child.Text = strQuestion;
this.Controls.Add(child);
this.Controls.Add(new LiteralControl("<br>"));
}
public virtual void SetAnswer()
{
}
public string Answer
{
get
{
return this.m_strAnswer;
}
}
public string Id
{
get
{
return this.m_strId;
}
}
public bool IsRequired
后面还有 17 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。