• 大小: 2.54MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-02
  • 语言: C#
  • 标签: asp.net  

资源简介

网上购物网站系统,注册,登录,购物车,代码加数据库等, 网上购物网站系统,注册,登录,购物车,代码加数据库等

资源截图

代码片段和文件信息

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.Net;
using System.Text;
namespace SCard
{
    public partial class book : System.Web.UI.Page
    {
        MyOleDbPager OleDbPager = new MyOleDbPager();
        public Class1 xm = new Class1();
        public clsPublic s = new clsPublic();
        protected void Page_Load(object sender EventArgs e)
        {
            if (!IsPostBack)
            {

                s.setInfo(“---客户留言“ this.Page);
                OleDbPager.setAttribute(OleDbPager1 “DataList1“ “SELECT * FROM [book] order by id desc“ “1000000-id“ 5);
                if (Session[“useradmin“] != null)
                {
                    xm.getDataSet(“SELECT * FROM [user_a] WHERE [user_name]=‘“+Session[“useradmin“]+“‘ ORDER BY id DESC“);
                    this.TextBox1.Value = xm.ds.Tables[0].Rows[0][“user_a2“].ToString();
                   
                }


            }
        }

        protected void ImageButton1_Click1(object sender ImageClickEventArgs e)
        {
            if (Page.IsValid == true)
            {
                string a1 = s.wipescript(this.TextBox1.Value.Trim()).Replace(“‘“ “‘‘“);
                string a2 = s.wipescript(this.TextBox2.Value.Trim()).Replace(“‘“ “‘‘“);
                if (a1 ==““ || a2 == ““)
                {
                    s.rscript(this.GetType() “ript>alert(‘请认真填写内容!!!‘);ript>“ this.Page);
                    return;
                }
                else
                {
                    DataSet ds = xm.getDataSet(“INSERT INTO [book] (book_namebook_conbook_kf) VALUES (‘“ + a1 + “‘‘“ + a2 + “‘‘等待管理员回复!!!‘)“);
                    s.rscript(this.GetType() “ript>alert(‘留言成功!!!‘);location=‘book.aspx‘ript>“ this.Page);
                    //wrHtml1(“http://localhost:6705/service/book.aspx“ “book.html“);
                }
            }
        }
        public string wrHtml1(string a string b)
        {
            WebRequest HttpWebRequest = WebRequest.Create(a);
            WebResponse HttpWebResponse = HttpWebRequest.GetResponse();
            StreamReader sr = new StreamReader(HttpWebResponse.GetResponseStream() System.Text.Encoding.GetEncoding(“GB2312“));
            string strHtml = sr.ReadToEnd();
            string strFilePath = Server.MapPath(b);
            FileStream fs = new FileStream(strFilePath FileMode.OpenOrCreate);
            StreamWriter sw = new StreamWriter(fs Encoding.GetEncoding(“GB2312“));
            sw.WriteLine(strHtml);
            sr.Close();
            sw.Close();
            fs.Close();
            return a;


        }
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1859  2018-05-28 10:13  Shoppingmall\App_Code\Class1.cs

     文件       3578  2018-05-28 10:13  Shoppingmall\App_Code\clsPublic.cs

     文件       1400  2018-05-28 10:13  Shoppingmall\App_Code\condb2.cs

     文件      11625  2018-05-28 10:13  Shoppingmall\App_Code\GetIPLocation.cs

     文件       3130  2018-05-28 10:13  Shoppingmall\App_Code\MyOleDbPager.cs

     文件       5305  2018-05-28 10:14  Shoppingmall\App_Code\Pagination.cs

     文件       3415  2018-05-28 10:14  Shoppingmall\App_Code\visit.cs

     文件      20480  2018-05-28 10:13  Shoppingmall\Bin\AspNetPage.dll

     文件      57344  2007-03-22 19:27  Shoppingmall\Bin\Intelligencia.UrlRewriter.dll

     文件      40960  2008-01-06 20:19  Shoppingmall\Bin\WebPager.dll

     文件       4470  2018-05-28 09:57  Shoppingmall\book.aspx

     文件       2990  2018-05-28 10:14  Shoppingmall\book.aspx.cs

     文件      14035  2018-05-28 10:12  Shoppingmall\css.css

     文件        985  2018-05-28 10:09  Shoppingmall\foot.ascx

     文件        457  2018-05-28 10:14  Shoppingmall\foot.ascx.cs

     文件       3329  2018-05-28 10:09  Shoppingmall\good.aspx

     文件       1513  2018-05-28 10:15  Shoppingmall\good.aspx.cs

     文件      54702  2009-01-06 19:17  Shoppingmall\images\01.jpg

     文件      54096  2009-01-06 19:17  Shoppingmall\images\02.jpg

     文件      47526  2009-01-06 19:16  Shoppingmall\images\03.jpg

     文件       2993  2008-05-15 22:08  Shoppingmall\images\admin_03.gif

     文件        426  2008-05-15 22:08  Shoppingmall\images\admin_04.gif

     文件       1341  2008-05-15 22:08  Shoppingmall\images\admin_06.gif

     文件        353  2008-05-15 22:08  Shoppingmall\images\admin_08.gif

     文件        133  2008-05-15 22:08  Shoppingmall\images\admin_09.gif

     文件      11213  2008-05-15 22:08  Shoppingmall\images\admin_12.gif

     文件       2048  2008-05-15 22:08  Shoppingmall\images\admin_16.gif

     文件        434  2008-05-15 22:54  Shoppingmall\images\admin_23.gif

     文件         83  2009-01-06 19:07  Shoppingmall\images\bg.gif

     文件        122  2008-05-22 10:41  Shoppingmall\images\bg2.gif

............此处省略179个文件信息

评论

共有 条评论