Web/Managers/depend/upload.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Configuration;
using System.IO;
using Common;
namespace Web.Managers.depend
{
public partial class upload : Web.Managers.MasterPage
{
protected string errorMsg = string.Empty;
//protected HtmlInputFile file1;
protected string fileName = string.Empty;
// protected HtmlForm frmUpload;
protected string isFile = "0";
protected string itemID = string.Empty;
protected string mod = "0";
protected string serverPath = string.Empty;
private string getFileName()
{
Random RndCls = new Random();
string s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
StringBuilder st = new StringBuilder();
st.Append(DateTime.Now.ToString("yyyyMMddhhmmss"));
for (int i = 1; i <= 5; i++)
{
st.Append(s.Substring(RndCls.Next(0, s.Length - 1), 1));
}
return st.ToString();
}
protected void Page_Load(object sender, EventArgs e)
{
if (base.Request.QueryString["id"] != null)
{
this.itemID = base.Request.QueryString["id"].ToString();
}
if (base.Request.QueryString["mod"] != null)
{
this.mod = base.Request.QueryString["mod"].ToString();
}
if ((base.Request.QueryString["file"] != null) && (base.Request.QueryString["file"].ToString() == "1"))
{
this.isFile = "1";
}
if (base.Request.QueryString["up"] != null)
{
this.serverPath = base.Request.QueryString["up"].ToString();
}
if (base.IsPostBack)
{
int fileSize = this.uploadFile();
if (this.errorMsg == string.Empty)
后面还有 78 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
