日期:2014-05-17 浏览次数:20461 次
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="electric.aspx.cs" Inherits="_1.electric" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
家电类<br />
<br />
<asp:Label ID="Label1" runat="server" Text="电视"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Width="40px"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="冰箱"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Width="40px"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server" Text="洗衣机"></asp:Label>
<asp:TextBox ID="TextBox3" runat="server" Width="40px"></asp:TextBox>
<br />
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="提交" />
<br />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="查看购物车" />
<br />
<br />
<asp:Table ID="Table1" runat="server"><!--table 在这儿-->
</asp:Table>
<br />
<asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="修改" />
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace _1
{
public partial class electric : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["goods"] == null)