资源简介
应用技术成熟的ASP.NET和SQL SERVER 架构来实现。让用户享受购物模式的便利性,为企业提供了新的途径。它以网络为基础,帮助用户和商家解决传统购物模式的所出现的问题。降低企业和个人的成本将信息有效的共享,在提供安全的交易平台下,是一种高效率可移植可扩展的分布式购物系统。本课题实现商品展示、用户订单管理、购物车功能和订单提交功能以及后台综合功能管理模块。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
}
protected void Button2_Click(object sender EventArgs e)
{
SqlConnection conn = new SqlConnection();
conn.ConnectionString = “Data Source=HU-PC;initial catalog=net课程设计;integrated security=sspi“;
string strUname = TextBox2.Text;
string strpwd = TextBox3.Text;
string strsql = “select ident from userinfo where 用户名=‘“ + strUname+“‘ and 密码=‘“+strpwd+“‘“;
conn.Open();
SqlCommand comm = new SqlCommand(strsql conn);
object x = comm.ExecuteScalar();
int intident;
if (x == null)
{
Label4.Text = “你输入的用户名或密码不正确。“;
Label4.ForeColor = System.Drawing.Color.Red;
Session[“pass“] = null;
}
else
{
Session[“pass“] = “right“;
Session[“username“] = strUname;
intident = (int)x;
if (intident == 0)
{
Label4.Text = ““;
Response.Redirect(“master.aspx?name=“ + TextBox2.Text);
}
else if (intident == 1) //普通会员
{
Label4.Text = ““;
Response.Redirect(“商品首页.aspx?name=“ + TextBox2.Text);
}
}
conn.Close();
}
protected void Button3_Click(object sender EventArgs e)
{
Response.Redirect(“register.aspx?name=“);
}
}
- 上一篇:职工工资管理系统C#课程设计含数据库
- 下一篇:C#操作excel
相关资源
- 数据库课程设计程序及报告(c#编写)
- asp.net+IIS+sqlserver选课系统毕业设计全
- ASP.NET课程设计 新闻发布网站 新.rar
- ASP.NET课程设计案例精编279451
- ASP.NET课程设计+报告-单班通讯录管理
- asp.net课程设计网上投票系统access库包
- ASP.NET实验报告,结课论文,课程设计
- 工资管理系统数据库课设报告()
- asp.net网上商城系统原创数据库课程设
- 社团会员管理系统数据库课程设计报
- c#语法分析器自上而下
- 健康档案管理系统 数据库课程设计
- 销售管理系统---UML课程设计,采用C
- C#课程设计一个自己做的收银系统火锅
- C#课程设计-超市管理系统
- 课程设计--实验室管理系统
- 数据库课程设计——教学管理系统C
- 广工c#网络应用编程课程设计 银行存
- ASP.NET网上图书销售系统
- 基于ASP.NET的课程设计
- ASP.NET 旅行社信息管理网站课程设计
- ASP.NET聊天室课程设计
- C#学生宿舍管理系统 课程设计
- 用C#做的简单的学生学籍管理系统课程
- 数据库课程设计----C#版学生信息管理
- 关于酒店管理系统的C#课程设计
- 数据库课程设计-超市管理系统
- 教学设备数据库管理系统SQL+C#课程设
- 酒店管理系统(数据库+课程设计+C#)
- 小小的网上订餐系统课程设计用
评论
共有 条评论