Default.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//===============================================================================================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
//
//===============================================================================================
//该源码下载自www.51aspx.com(51aspx.com)
using System;
using System.Configuration;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using MyWebPagesStarterKit.Controls;
using MyWebPagesStarterKit;
public partial class _Default : PageBaseClass
{
private WebPage _page;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (User.IsInRole(RoleNames.Administrators.ToString()))
{
Hashtable list = new Hashtable();
foreach (Type t in _page.GetType().Assembly.GetTypes())
{
if (t.IsClass && (t.GetInterface("ISection") != null) && (!t.IsAbstract))
list.Add(t.Name, t.AssemblyQualifiedName);
}
SortedList sortedlist = new SortedList(list);
for(int i = 0; i< sortedlist.Count; i++){
string ResourceID = "ctl_" + sortedlist.GetKey(i).ToString() + "_RssTitle";
string ListName = Resources.StringsRes.ResourceManager.GetString(ResourceID);
cmbSections.Items.Add(new ListItem(ListName, sortedlist.GetByIndex(i).ToString()));
}
}
else
{
divPageSettings.Visible = false;
}
}
}
protected void Page_PreRender(object sender, EventArgs e)
{
if (_website.Theme == "Arabic")
{
HtmlGenericControl body = (HtmlGenericControl)Master.FindControl("body1");
body.Attributes.Add("dir", "rtl");
}
}
protected void btnNewSection_Click(object sender, EventArgs e)
后面还有 77 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
