2007.08.23 C#工作随笔
来源:互联网 发布:linux tar压缩文件夹 编辑:程序博客网 时间:2024/05/27 09:48
Shop.aspx 1)在产品图下加上<%#Convert.ToChar(Container.ItemIndex+65)%>,显示字母序列。 2)在开头添加C#语句 <script language="c#" runat="server">
void blank()
{ Response.Write(" - ");} void type()
{
String type=Request.Params["Type"];
Session["ID"]=product.Brand+" - "+type;
Response.Write(type);
}
void id()
{Response.Write(Session["ID"]);}
</script> 3)在ID号那添加修改文本框及按钮 <%blank();%>
<input name="choose" type="text" class="inputbg" value="<%type();%>" size="1" maxlength="1"/> <input name="Amend" type="button" onClick="javascript:window.location.href='show.aspx?pid=<%=product.ProductID%>&Type=' + document.all.choose.value;" value="Amend"> <%id();%> 4)传值给下个页面,修改<from> <form name="pDetails" action='shoppingcart.aspx?pid=<%=product.ProductID%>&type=<%type();%>' method=post target="cart" onSubmit="window.open('','cart','width=700,height=850,scrollbars=yes,top=0,left=0')">
2.为其他页面添加传送到show.aspx的初始值 &type=A ,其中页面包括HotProduct.ascx、Search.aspx、List.aspx
0 0
- 2007.08.23 C#工作随笔
- 2007.08.24 C#工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- 工作随笔
- C#随笔
- C#随笔
- c#随笔
- 06毕业设计
- 重写了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++开源库大全