• 大小: 5.19MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-26
  • 语言: C#
  • 标签: C#  asp.net  旅游网站  

资源简介

大三时候asp.net期末作业,功能基本实现,只是数据没怎么填充,后台管理员admin,密码00 。 本系统采用C#+sqlserver2005在vs2008平台下开发,全部都是自己手写代码,比较合适学生学习之用,是初学者的不错选择。(实现旅游信息的发布,修改,删除等,还有旅游路线的等,有旅馆住宿信息发布。特色:采用ckeditor和ckfinder作为信息发布编辑器,实现所见即所得功能,还自动生成静态信息页面,减轻服务器负担。)

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.xml.Linq;

using System.Data.SqlClient;

namespace TravelWeb
{
    public partial class _Default : System.Web.UI.Page
    {
        public string sql = null;
        protected void Page_Load(object sender EventArgs e)
        { 
            GridViewDataBinding();
            sql = “select * from travel_lines order by travel_lines_id desc“;
            Binddtlt(sqllinesDataList);
            Binddtlt(sql DataList1);
            Binddtlt(sql DataList2);
            sql = “select * from hotel_info order by hotel_id desc“;
            Binddtlt(sql hotelDataList);
            Binddtlt(sql DataList3);
            Binddtlt(sql DataList4);
           
        }

        public void Binddtlt(string sqlDataList dl)
        {
            string Id = Request.QueryString[“id“];
            string sqldtlt = sql;
            DataTable dt = new DataTable();
            dt = DataConn.xiugai(sqldtlt);
            dl.DataSource = dt;
            dl.DataBind();

        }

        public void GridViewDataBinding()
        {
            SqlConnection conn;
            using (conn = DataConn.getSqlConnection())
            {
                try
                {
                    DataSet ds = DataConn.getDataSet(“selectAttractionsHtml“ conn);
                    GridView1.DataSource = ds.Tables[0].DefaultView;
                    GridView1.DataBind();
                }
                catch (Exception ex)
                {

                    Response.Write(ex.Message);
                }
            }
        }
    }
}

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

     文件      11286  2011-07-06 03:07  TravelWeb20110706b\TravelWeb\AdminManager\AddAttractions.aspx

     文件       3909  2011-07-06 03:07  TravelWeb20110706b\TravelWeb\AdminManager\AddAttractions.aspx.cs

     文件       3591  2011-07-06 03:07  TravelWeb20110706b\TravelWeb\AdminManager\AddAttractions.aspx.designer.cs

     文件      11159  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AddHotel.aspx

     文件       3690  2011-07-06 03:01  TravelWeb20110706b\TravelWeb\AdminManager\AddHotel.aspx.cs

     文件       3249  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AddHotel.aspx.designer.cs

     文件      11161  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AddLines.aspx

     文件       3695  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AddLines.aspx.cs

     文件       3249  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AddLines.aspx.designer.cs

     文件       1746  2011-07-06 02:35  TravelWeb20110706b\TravelWeb\AdminManager\AdminLogin.aspx

     文件       3063  2011-07-06 02:57  TravelWeb20110706b\TravelWeb\AdminManager\AdminLogin.aspx.cs

     文件       1888  2011-07-02 11:01  TravelWeb20110706b\TravelWeb\AdminManager\AdminLogin.aspx.designer.cs

     文件      10839  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AttractionsEditor.aspx

     文件       6534  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AttractionsEditor.aspx.cs

     文件       3599  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AttractionsEditor.aspx.designer.cs

     文件      10278  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AttractionsManager.aspx

     文件       3335  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AttractionsManager.aspx.cs

     文件       1553  2011-07-06 03:06  TravelWeb20110706b\TravelWeb\AdminManager\AttractionsManager.aspx.designer.cs

     文件       2545  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\adapters\jquery.js

     文件     363774  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\ckeditor.js

     文件       1122  2011-07-03 00:48  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\config.js

     文件        528  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\contents.css

     文件         43  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\images\spacer.gif

     文件      17160  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\af.js

     文件      21730  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\ar.js

     文件      22065  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\bg.js

     文件      23911  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\bn.js

     文件      17084  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\bs.js

     文件      18867  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\ca.js

     文件      18862  2011-07-03 00:28  TravelWeb20110706b\TravelWeb\AdminManager\ckeditor\lang\cs.js

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

评论

共有 条评论