62,054
社区成员
发帖
与我相关
我的任务
分享
品牌:<a href="xx.aspx?b=全部">全部惠普</a>(hp)联想(Lenovo)联想(ThinkPad)宏碁(acer)华硕 戴尔 三星 索尼 东芝 Gateway 微星 海尔 方正 富士通 苹果(Apple)神舟同方优派长城
价格:全部 <a href="xx.aspx?p=1">1-2999</a> 3000-3999 4000-4999 5000-5999 6000-69997 000-7999 8000-9999 10000-12999 13000以上
尺寸:全部 <a href="xx.aspx?p=1">8.9英寸及以下</a> 11英寸 12英寸 13英寸 14英寸 15英寸 16英寸-17英寸
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
String pinpai = "";
String jiage = "";
String chicun = "";
protected void Page_Load(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(Request.QueryString["pinpai"]) == false)
{
pinpai = Request.QueryString["pinpai"];
}
if (String.IsNullOrEmpty(Request.QueryString["jiage"]) == false)
{
jiage = Request.QueryString["jiage"];
}
if (String.IsNullOrEmpty(Request.QueryString["chicun"]) == false)
{
chicun = Request.QueryString["chicun"];
}
Response.Write("<li>pinpai = " + pinpai);
Response.Write("<li>jiage = " + jiage);
Response.Write("<li>chicun = " + chicun);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
var pinpai = "<%=pinpai %>";
var jiage = "<%=jiage %>";
var chicun = "<%=chicun %>";
function SetLink(x, y, lk) {
switch (x) {
case 0:
pinpai = y;
break;
case 1:
jiage = y;
break;
case 2:
chicun = y;
break;
}
lk.href = "xx.aspx?pinpai=" + encodeURIComponent(pinpai) + "&jiage=" + encodeURIComponent(jiage) + "&chicun=" + encodeURIComponent(chicun);
}
</script>
</head>
<body>
<form runat="server" id="x">
品牌:<a href="xx.aspx" onclick="SetLink(0,'全部',this)">全部</a> 惠普(hp)<a href="xx.aspx"
onclick="SetLink(0,'Lenovo',this)">联想(Lenovo)</a>联想(ThinkPad)宏碁(acer)华硕 戴尔 三星
索尼 东芝 Gateway 微星 海尔 方正 富士通 苹果(Apple)神舟同方优派长城
<br />
价格:全部 <a href="xx.aspx" onclick="SetLink(1,'2999',this)">1-2999</a> <a href="xx.aspx"
onclick="SetLink(1,'3999',this)">3000-3999</a> 4000-4999 5000-5999 6000-69997
000-7999 8000-9999 10000-12999 13000以上
<br />
尺寸:全部 <a href="xx.aspx" onclick="SetLink(2,'8.9',this)">8.9英寸及以下</a> <a href="xx.aspx"
onclick="SetLink(2,'11',this)">11英寸</a> 12英寸 13英寸 14英寸 15英寸 16英寸-17英寸
</form>
</body>
</html>
<%@ Page Language="C#" EnableViewState="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
String qita = "", price = "", type = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!String.IsNullOrEmpty(Request.QueryString["qita"]))
qita = Request.QueryString["qita"].ToString();
if (!String.IsNullOrEmpty(Request.QueryString["price"]))
price = Request.QueryString["price"].ToString();
if (!String.IsNullOrEmpty(Request.QueryString["type"]))
type = Request.QueryString["type"].ToString();
//查询
Response.Write("<li>type = " + type);
Response.Write("<li>price = " + price);
Response.Write("<li>qita = " + qita);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<form runat="server" id="x">
<li>按类型:<a href="a.aspx?type=1&price=<%=price%>&qita=<%=qita%>">轿车</a> <a
href="a.aspx?type=2&price=<%=price%>&qita=<%=qita%>">商务车/MPV</a> <a href="a.aspx?type=3&price=<%=price%>&qita=<%=qita%>">越野车/SUV</a></li>
<li>按价格:<a href="a.aspx?price=&type=<%=type %>&qita=<%=qita%>">不限</a>
<a href="a.aspx?price=1&type=<%=type %>&qita=<%=qita%>">3万以下</a> <a href="a.aspx?price=2&type=<%=type %>&qita=<%=qita%>">
3-5万</a></li>
<li>其他:<a href="a.aspx?qita=1&type=<%=type %>&price=<%=price%>">条件1</a> <a href="a.aspx?qita=2&type=<%=type %>&price=<%=price%>">
条件2</a></li>
</form>
</body>
</html>