2007.08.24 C#工作随笔
来源:互联网 发布:linux tar压缩文件夹 编辑:程序博客网 时间:2024/05/19 12:25
ShoppingCart.aspx
<script language="c#" runat="server">
static int i;
static int d=1;
static int n;
void typeid()
{
String type=Request.Params["type"];
Response.Write(type);
while((i<n)||(i==0))
{i++;}
Response.Write(i);
Response.Write(" ");
Session["id"+i]=Request.Params["type"];
Response.Write(" ");
Response.Write(Session["id"+i]);
n=i;
}
void type()
{
String type=Request.Params["type"];
Response.Write(type);
}
void list()
{ Response.Write(Session["id"+d]);
d++;
}
void clear()
{
while(n>=0)
{Session.Remove("id"+n);
n--;}
i=0;
n=0;
}
</script>
在中间列表中加了一列:
<TD width="60px"><b>Type</b></TD>
<TD width="60px"><%//#Container.ItemIndex+1%> <%list();%></TD>
<script language="c#" runat="server">
static int i;
static int d=1;
static int n;
void typeid()
{
String type=Request.Params["type"];
Response.Write(type);
while((i<n)||(i==0))
{i++;}
Response.Write(i);
Response.Write(" ");
Session["id"+i]=Request.Params["type"];
Response.Write(" ");
Response.Write(Session["id"+i]);
n=i;
}
void type()
{
String type=Request.Params["type"];
Response.Write(type);
}
void list()
{ Response.Write(Session["id"+d]);
d++;
}
void clear()
{
while(n>=0)
{Session.Remove("id"+n);
n--;}
i=0;
n=0;
}
</script>
在中间列表中加了一列:
<TD width="60px"><b>Type</b></TD>
<TD width="60px"><%//#Container.ItemIndex+1%> <%list();%></TD>
0 0
- 2007.08.24 C#工作随笔
- 2007.08.23 C#工作随笔
- [20110323-24]工作随笔
- 2017-02-24工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- C#随笔
- 重写了loadView,一般用在什么地方
- C#邮件发送
- android 基于HTTPSWebview无法正常加载图片
- iOS开发——创建你自己的Framework
- 2007.08.23 C#工作随笔
- 2007.08.24 C#工作随笔
- C# 数组导入
- SQL中日期比对
- Asp.net数组应用
- Asp.Net[C#] 使用GridView 分页,编辑,删除,导出XML完整页面
- HashMap的扩容机制---resize()
- 自定义下拉刷新之仿AcFun下拉刷新
- C++开源库大全
- ASP.NET2.0轻松解决统计图表