bas/yjgl/Mini_Xyj.aspx.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data.SqlClient;
using System.Web.UI;
using haoke365;
namespace hkpro.bas.yjgl
{
public partial class Mini_Xyj : System.Web.UI.Page
{
mydb hkdb = new mydb();
protected void Page_Load(object Sender, EventArgs E)
{
hkdb.VeriSess("4");
if (!IsPostBack)
{
hkdb.PassTo("10102,1002", "0");
if (!string.IsNullOrEmpty(Request.QueryString["id"]))
{
UserID.Text = Request.QueryString["id"];
UserName.Text = Request.QueryString["mc"];
}
BindAttr();
lblAttachSize.Text = Convert.ToString(SqlHelper.ExecuteScalar("SELECT P_STRING FROM hk_CSDA WHERE PARAMT='fj_size'"));
//短信
dxtz.Visible = Convert.ToBoolean(hkdb.VeriSms());
}
}
public void BindAttr()
{
UserName.Attributes.Add("readonly", "readonly");
}
//发送邮件
public void Send_Click(object sender, EventArgs e)
{
string ynfj = null;
string unitcode = null;
string FileName1 = "";
string FileVisualPathStr = "";
string Namefj = this.Session["userid"].ToString();
if (!string.IsNullOrEmpty(fj.PostedFile.FileName.Trim()))
{
try
{
if (fj.PostedFile.ContentLength < 1024 * int.Parse(lblAttachSize.Text))
{
FileName1 = System.IO.Path.GetFileName(fj.PostedFile.FileName);
savefj.Text = FileName1;
if (!System.IO.Directory.Exists((Server.MapPath("..\\..\\") + "Attach\\yj\\" + Namefj)))
{
System.IO.Directory.CreateDirectory((Server.MapPath("..\\..\\") + "Attach\\yj\\" + Namefj));
}
Random TempNameInt = new Random();
后面还有 163 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
