icent.Web/Admin/Content/Survey/add.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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 System.Text.RegularExpressions;
using icent.BLL;
using icent.Model;
using icent.Common;
using icent.Web.UI;
namespace icent.Web.Admin.Content.Survey
{
public partial class add : AdminPage
{
BLL.Catalog catalog = new BLL.Catalog();
BLL.Content content = new BLL.Content();
BLL.Sys_Website sys_Website = new BLL.Sys_Website();
Cont_SurveyInfo surveyInfo = new Cont_SurveyInfo();
Sys_WebsiteInfo sys_WebsiteInfo = new Sys_WebsiteInfo();
string websiteId;
string catalogId;
protected void Page_Load(object sender, EventArgs e)
{
websiteId = Request.QueryString["websiteId"];
catalogId = Request.QueryString["catalogId"];
sys_WebsiteInfo = sys_Website.GetById(int.Parse(websiteId));
if (!IsPostBack)
{
DataTable dtCatalog = catalog.GetList(int.Parse(websiteId), false);
Tree.GetTreeDropDownList(dtCatalog, ddlCatalog, catalog.GetById(sys_WebsiteInfo.RootCatalogId).ParentId, true);
ddlCatalog.SelectedValue = catalogId;
tbAttachment.Attributes.Add("style", "display:;");
add_tbAttachment.InnerHtml = "<a href='javascript:undefined;' onclick='showPopWin(\"/Admin/Function/Files/selectFile.aspx?websiteId=" + websiteId + "&type=attachment&rootPath=" + sys_WebsiteInfo.Path + "¤tRootPath=" + sys_WebsiteInfo.Path + "Images/&rptListType=image&textBoxClientID=" + tbAttachment.ClientID + "&addSpanClientID=" + add_tbAttachment.ClientID + "&delSpanClientID=" + del_tbAttachment.ClientID + "\",550, 380, _refresh);return false;'>选择</a> <a href='javascript:undefined;' onclick='showPopWin(\"/Admin/Function/Files/uploadAttachment.aspx?websiteId=" + websiteId + "&type=attachment¤tRootPath=" + sys_WebsiteInfo.Path + "UpFiles/&isShowAttachment=True&textBoxClientID=" + tbAttachment.ClientID + "&addSpanClientID=" + add_tbAttachment.ClientID + "&delSpanClientID=" + del_tbAttachment.ClientID + "\",550, 200, _refresh);return false;'>上传</a>";
del_tbAttachment.Attributes.Add("style", "display:none;");
}
}
public string Contents
{
set { tbContent.Text = value; }
get { return tbContent.Text; }
}
public string Titles
{
get
{
string titleStr = tbTitle.Text;
后面还有 119 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
