资源简介
网上书店管理系统

代码片段和文件信息
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 System.IO;
using System.Data.SqlClient;
public partial class AddPingJia : System.Web.UI.Page
{
SqlHelper data = new SqlHelper();
SqlConnection sqlconn = new SqlConnection(ConfigurationManager.ConnectionStrings[“ConnectionString“].ConnectionString);
protected void Page_Load(object sender EventArgs e)
{
this.title = “ “;
if (!IsPostBack)
{
BinderReplay();
}
}
private void BinderReplay()
{
string id = Request.QueryString[“SPID“].ToString();
string sql = “select * from Comment where SPID=‘“ + id + “‘“;
SqlConnection con = new SqlConnection(SqlHelper.connstring);
con.Open();
SqlDataAdapter sda = new SqlDataAdapter(sql con);
DataSet ds = new DataSet();
sda.Fill(ds);
PagedDataSource objPds = new PagedDataSource();
objPds.DataSource = ds.Tables[0].DefaultView;
objPds.AllowPaging = true;
objPds.PageSize = 5;
int CurPage;
if (Request.QueryString[“Page“] != null)
CurPage = Convert.ToInt32(Request.QueryString[“Page“]);
else
CurPage = 1;
objPds.CurrentPageIndex = CurPage - 1;
lblCurrentPage.Text = CurPage.ToString();
lblSumPage.Text = objPds.PageCount.ToString();
if (!objPds.IsFirstPage)
{
this.hyfirst.NavigateUrl = Request.CurrentExecutionFilePath + “?Page=“ + 1 + “&id=“ + id;
lnkPrev.NavigateUrl = Request.CurrentExecutionFilePath + “?Page=“ + Convert.ToString(CurPage - 1) + “&id=“ + id;
}
if (!objPds.IsLastPage)
{
hylastpage.NavigateUrl = Request.CurrentExecutionFilePath + “?Page=“ + objPds.PageCount + “&id=“ + id;
lnkNext.NavigateUrl = Request.CurrentExecutionFilePath + “?Page=“ + Convert.ToString(CurPage + 1) + “&id=“ + id;
}
this.DataList2.DataSource = objPds;
this.DataList2.DataBind();
con.Close();
}
protected void Button2_Click(object sender EventArgs e)
{
string id = Request.QueryString[“SPID“].ToString();
string ddid = Request.QueryString[“id“].ToString();
if (Session[“UserId“] == null)
{
Alert.AlertAndRedirect(“您还没有登录不能评论“ “Default.aspx“);
}
else
{
string sql1 = “select * from dbo.XiangXiDD where id=‘“ + ddid + “‘ and IsPingJia=‘是‘ “;
SqlDataReader drKuCun = data.GetDataReader(sql1);
while (drKuCun.Read())
{
data.RunSql(“update dbo.ZhuDingDan set OrderStite=‘已完成‘ where Orderid=‘“ + Re
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-24 12:21 WangShangShuDian\
文件 3360 2017-11-24 15:29 WangShangShuDian\AddPingJia.aspx
文件 4106 2017-11-24 16:42 WangShangShuDian\AddPingJia.aspx.cs
文件 1403 2017-11-24 15:55 WangShangShuDian\AddTopic.aspx
文件 1087 2017-11-24 15:56 WangShangShuDian\AddTopic.aspx.cs
目录 0 2019-04-24 12:20 WangShangShuDian\App_Code\
文件 1181 2017-11-24 15:29 WangShangShuDian\App_Code\Alert.cs
文件 3468 2017-11-24 15:29 WangShangShuDian\App_Code\SqlHelper.cs
文件 1699 2017-11-24 15:29 WangShangShuDian\App_Code\upload.cs
文件 3171 2017-11-24 15:53 WangShangShuDian\BBS.aspx
文件 770 2017-11-24 15:50 WangShangShuDian\BBS.aspx.cs
目录 0 2019-04-24 12:20 WangShangShuDian\Bin\
文件 49664 2013-11-23 15:48 WangShangShuDian\Bin\LitJSON.dll
文件 1100392 2007-10-10 09:48 WangShangShuDian\Bin\Microsoft.Office.Interop.Excel.dll
文件 260 2012-03-11 17:34 WangShangShuDian\Bin\Microsoft.Office.Interop.Excel.dll.refresh
文件 461416 2007-10-10 09:48 WangShangShuDian\Bin\Microsoft.Office.Interop.Owc11.dll
文件 248 2011-09-26 23:57 WangShangShuDian\Bin\Microsoft.Office.Interop.Owc11.dll.refresh
文件 1619 2017-11-24 15:29 WangShangShuDian\CBSTypeList.aspx
文件 2446 2017-11-24 15:29 WangShangShuDian\CBSTypeList.aspx.cs
目录 0 2019-04-24 12:20 WangShangShuDian\css\
文件 15963 2017-03-27 18:12 WangShangShuDian\css\st
文件 4048 2017-11-24 15:29 WangShangShuDian\DDFHMyOrder.aspx
文件 2937 2017-11-24 15:29 WangShangShuDian\DDFHMyOrder.aspx.cs
文件 5221 2017-11-24 15:51 WangShangShuDian\Default.aspx
文件 1518 2017-11-24 15:29 WangShangShuDian\Default.aspx.cs
文件 4388 2017-11-24 15:29 WangShangShuDian\DFKMyOrder.aspx
文件 2938 2017-11-24 15:29 WangShangShuDian\DFKMyOrder.aspx.cs
文件 4018 2017-11-24 15:29 WangShangShuDian\DPJMyOrder.aspx
文件 2911 2017-11-24 15:29 WangShangShuDian\DPJMyOrder.aspx.cs
文件 4362 2017-11-24 15:29 WangShangShuDian\DSHMyOrder.aspx
文件 2911 2017-11-24 15:29 WangShangShuDian\DSHMyOrder.aspx.cs
............此处省略709个文件信息
- 上一篇:rpm-4.11.2
- 下一篇:三菱系统说明书
评论
共有 条评论