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 path = WeiSha.Common.Request.QueryString["id"].String;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
fill();
}
this.Form.DefaultButton = this.btnEnter.UniqueID;
}
private void fill()
{
Song.Extend.Template tmp = new Extend.Template(path);
tbName.Text = tmp.Name;
tbAuthor.Text = tmp.Author;
tbQQ.Text = tmp.QQ;
tbCrtTime.Text = tmp.CrtTime.ToString();
tbIntro.Text = tmp.Intro;
imgShow.Src = tmp.Logo + "?s=" + DateTime.Now.Ticks;
}
protected void btnEnter_Click(object sender, EventArgs e)
{
Song.Extend.Template tmp = new Extend.Template(path);
tmp.Name = tbName.Text;
tmp.Author = tbAuthor.Text;
tmp.QQ = tbQQ.Text;
tmp.CrtTime = Convert.ToDateTime(tbCrtTime.Text);
tmp.Intro = tbIntro.Text;
//图片
if (fuLoad.PostedFile.FileName != "")
{
fuLoad.NewName = "logo.jpg";
fuLoad.IsConvertJpg = true;
fuLoad.SaveAs(this.Server.MapPath(tmp.Logo));
WeiSha.Common.Images.FileTo.Zoom(this.Server.MapPath(tmp.Logo), 200, 200, false);
imgShow.Src = tmp.Logo + "?s=" + DateTime.Now.Ticks;
}
tmp.Save();
Master.AlertCloseAndRefresh("操作成功!");
后面还有 4 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
