資源簡介
基于asp.net的簡單的影院網站項目,實現簡單的購票,選座,管理員添加電影

代碼片段和文件信息
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;
namespace?movesProject
{
????public?partial?class?ZHXX?:?System.Web.UI.Page
????{
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????Label1.Text?=?Session[“userName“].ToString();
????????????//int?a;
????????????string?a;
????????????a?=?Session[“userName“].ToString();
????????????SqlConnection?conn?=?new?SqlConnection();
????????????string?str?=?System.Configuration.ConfigurationManager.ConnectionStrings[“connection“].ToString();
????????????conn.ConnectionString?=?str;
????????????conn.Open();
????????????SqlCommand?cmd?=?new?SqlCommand(“select?*?from?Users?where?userName=‘“?+?a?+?“‘“?conn);
????????????SqlDataAdapter?cda?=?new?SqlDataAdapter(“select?*?from?Users?where?userName=‘“+?a?+“‘“?conn);
????????????DataSet?da?=?new?DataSet();
????????????cda.Fill(da);
????????????SqlDataReader?dr?=?cmd.ExecuteReader();
????????????while?(dr.Read())
????????????{
????????????????Label2.Text?=?dr[“userId“].ToString();
????????????????//label2.Text?=?dr[“userId“].ToString();
????????????????Label3.Text?=?dr[“password“].ToString();
????????????????Label4.Text?=?dr[“tel“].ToString();
????????????????//Image1.ImageUrl?=?dr[“filmPic“].ToString();
????????????????//label1.Text?=?dr[“filmName“].ToString();
????????????????//label2.Text?=?dr[“filmType“].ToString();
????????????????//label3.Text?=?dr[“filmTime“].ToString();
????????????????//label4.Text?=?dr[“Price“].ToString();
????????????????//label5.Text?=?dr[“filmDs“].ToString();
????????????????
????????????}
????????????dr.Close();
????????????conn.Close();
????????}
????????protected?void?Button1_Click(object?sender?EventArgs?e)
????????{
????????????string?str?=?System.Configuration.ConfigurationManager.ConnectionStrings[“connection“].ToString();
????????????SqlConnection?myconn?=?new?SqlConnection();
????????????SqlCommand?mycomd?=?new?SqlCommand();
????????????myconn.ConnectionString?=?str;
????????????string?mysql?=?“update?Users?set?password=‘“?+?TextBox2.Text?+?“‘tel=‘“?+?TextBox3.Text?+?“‘where?username?=?‘“?+?Label1.Text?+?“‘“;
????????????myconn.Open();
????????????mycomd.CommandText?=?mysql;
????????????mycomd.Connection?=?myconn;
????????????mycomd.ExecuteNonQuery();
????????????myconn.Close();
????????????Response.AddHeader(“Refresh“?“0“);?
????????????Response.Write(“ript>alert(‘修改密碼成功!‘) ript>“);
????????}
????????protected?void?Button2_Click(object?sender?EventArgs?e)
????????{
????????????
????????????TextBox2.Text?=?““;
????????????TextBox3.Text?=?““;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-04-23?19:17??ASP.NET影院網站\
?????目錄???????????0??2019-03-15?18:31??ASP.NET影院網站\數據庫\
?????文件?????3145728??2019-03-15?18:26??ASP.NET影院網站\數據庫\Movie.mdf
?????文件?????1048576??2019-03-15?18:26??ASP.NET影院網站\數據庫\Movie_log.ldf
?????目錄???????????0??2019-03-13?16:08??ASP.NET影院網站\程序代碼\
?????目錄???????????0??2019-03-13?16:08??ASP.NET影院網站\程序代碼\movies\
?????目錄???????????0??2019-03-13?16:08??ASP.NET影院網站\程序代碼\movies\movies\
?????文件?????????908??2019-03-07?14:56??ASP.NET影院網站\程序代碼\movies\movies.sln
?????文件??????117760??2019-03-15?18:25??ASP.NET影院網站\程序代碼\movies\movies.v11.suo
?????文件????????2608??2019-03-07?22:12??ASP.NET影院網站\程序代碼\movies\movies\Account?information.aspx
?????文件????????2790??2019-03-07?22:10??ASP.NET影院網站\程序代碼\movies\movies\Account?information.aspx.cs
?????文件????????3179??2019-03-07?21:40??ASP.NET影院網站\程序代碼\movies\movies\Account?information.aspx.designer.cs
?????文件????????1243??2019-03-07?20:33??ASP.NET影院網站\程序代碼\movies\movies\addPl.aspx
?????文件????????2127??2019-03-07?14:53??ASP.NET影院網站\程序代碼\movies\movies\addPl.aspx.cs
?????文件????????1486??2019-03-07?14:53??ASP.NET影院網站\程序代碼\movies\movies\addPl.aspx.designer.cs
?????文件?????????511??2019-03-07?13:47??ASP.NET影院網站\程序代碼\movies\movies\admin.aspx
?????文件?????????328??2019-02-28?08:21??ASP.NET影院網站\程序代碼\movies\movies\admin.aspx.cs
?????文件?????????463??2019-02-28?08:21??ASP.NET影院網站\程序代碼\movies\movies\admin.aspx.designer.cs
?????文件????????2618??2019-03-11?14:48??ASP.NET影院網站\程序代碼\movies\movies\admin.Master
?????文件?????????332??2019-02-28?08:15??ASP.NET影院網站\程序代碼\movies\movies\admin.Master.cs
?????文件????????1522??2019-02-28?08:16??ASP.NET影院網站\程序代碼\movies\movies\admin.Master.designer.cs
?????文件????????3065??2019-03-12?10:35??ASP.NET影院網站\程序代碼\movies\movies\adminAddMovie.aspx
?????文件????????2613??2019-03-12?10:35??ASP.NET影院網站\程序代碼\movies\movies\adminAddMovie.aspx.cs
?????文件????????3239??2019-03-12?10:19??ASP.NET影院網站\程序代碼\movies\movies\adminAddMovie.aspx.designer.cs
?????文件????????2195??2019-03-07?13:47??ASP.NET影院網站\程序代碼\movies\movies\adminDeleteMovie.aspx
?????文件????????1920??2019-03-07?13:40??ASP.NET影院網站\程序代碼\movies\movies\adminDeleteMovie.aspx.cs
?????文件?????????817??2019-03-07?13:32??ASP.NET影院網站\程序代碼\movies\movies\adminDeleteMovie.aspx.designer.cs
?????文件????????2780??2019-03-12?10:55??ASP.NET影院網站\程序代碼\movies\movies\adminload.aspx
?????文件????????1880??2019-03-07?20:33??ASP.NET影院網站\程序代碼\movies\movies\adminload.aspx.cs
?????文件????????2605??2019-03-10?16:58??ASP.NET影院網站\程序代碼\movies\movies\adminload.aspx.designer.cs
?????文件????????1887??2019-03-10?20:42??ASP.NET影院網站\程序代碼\movies\movies\adminorder.aspx
............此處省略80個文件信息
- 上一篇:圖書管理系統(c#+sql2008)
- 下一篇:學生信息管理系統完整版
評論
共有 條評論