Song.Site/Manage/Template/List_Edit.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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 WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
namespace Song.Site.Manage.Template
{
public partial class List_Edit : Extend.CustomPage
{
//模板标识
private string tag = WeiSha.Common.Request.QueryString["tag"].String;
//模板类型
private string type = WeiSha.Common.Request.QueryString["type"].String;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
fill();
}
this.Form.DefaultButton = this.btnEnter.UniqueID;
}
private void fill()
{
WeiSha.Common.Templates.TemplateBank tmp = WeiSha.Common.Template.GetTemplate(type,tag);
tbName.Text = tmp.Name;
tbAuthor.Text = tmp.Author;
tbPhone.Text = tmp.Phone;
tbQQ.Text = tmp.QQ;
tbCrtTime.Text = tmp.CrtTime.ToString("yyyy-MM-dd");
tbIntro.Text = tmp.Intro;
imgShow.Src = tmp.Logo + "?s=" + DateTime.Now.Ticks;
lbFileName.Text = tmp.Path.Virtual;
}
protected void btnEnter_Click(object sender, EventArgs e)
{
WeiSha.Common.Templates.TemplateBank tmp = WeiSha.Common.Template.GetTemplate(type, tag);
tmp.Name = tbName.Text.Trim();
tmp.Author = tbAuthor.Text.Trim();
tmp.Phone = tbPhone.Text.Trim();
tmp.QQ = tbQQ.Text.Trim();
tmp.CrtTime = Convert.ToDateTime(tbCrtTime.Text);
tmp.Intro = tbIntro.Text.Trim();
//图片
if (fuLoad.PostedFile.FileName != "")
{
fuLoad.NewName = "logo.jpg";
fuLoad.IsConvertJpg = true;
后面还有 11 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
