QiHaiFengProgram/SysMail/MailSendBrows_show.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using SuLinClass;
using ProgramLib;
using Telerik.WebControls;
using System.Collections;
namespace QiHaiFengProgram.SysMail
{
public partial class MailSendBrows_show : System.Web.UI.Page
{
public static string d_content;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MailList();
}
}
public void MailList()
{
string id = Request["id"];
SqlDataReader sdr = PublicFunctions.GetDataRows(" where MS_ID=" + id, "", "T_MailSend");
if (sdr.Read())
{
lblMS_Title.Text = sdr["MS_Title"].ToString();
lblMS_OpName.Text = sdr["MS_OpName"].ToString();
lblMS_Times.Text = sdr["MS_Times"].ToString();
lblMS_AcceptName.Text = sdr["MS_AcceptName"].ToString();
d_content = sdr["MS_Content"].ToString();
hidMS_LsId.Value = sdr["MS_LsId"].ToString();
DataTable dt = PublicFunctions.GetDataTable(" where MA_LsID='" + sdr["MS_LsId"].ToString() + "'", "", "T_MailFJ");
this.Repeater1.DataSource = dt;
this.Repeater1.DataBind();
dt.Dispose();
}
sdr.Close();
sdr.Dispose();
}
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
Label lbl = (Label)e.Item.FindControl("lblMA_LsID");
LinkButton lnk = (LinkButton)e.Item.FindControl("lnkBtnDown");
string Path = Server.MapPath("../Uploads/Mail");
if (e.CommandName == "down")
{
SqlDataReader sdr = PublicFunctions.GetDataRows(" where MA_LsID='" + lbl.Text.ToString().Trim() + "' and FileNewName='" + lnk.CommandArgument + "'", "", " T_MailFJ");
if (sdr.Read())
{
System.Web.HttpContext.Current.Response.ContentType = "application/ms-download";
System.IO.FileInfo file = new System.IO.FileInfo(Path + "\\" + sdr["FileNewName"].ToString());
后面还有 23 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
