我定义了一个变量
public string A;for (int i = 0; i < myhit.Length(); i++)
{
A= i.ToString();// 对A赋值
str1 = HighLighter(str1, keyword, "<font color=red> <a href='B.aspx?id= A '> ", " </a></font> ");
}在 B.aspx 中
String id = Request.QueryString["id"].Tostring();我想捕捉循环中的i值 然后通过<a href>传到B.aspx 页面去 可是接收到的是字符 A然后我照网上说的改成 <a href='B.aspx?id= <%=A%> '> 结果传到B.aspx 页面时
地址栏里显示……B.aspx?id=<%=A%> 却得不到我要传的值求解决方法!!!
public string A;for (int i = 0; i < myhit.Length(); i++)
{
A= i.ToString();// 对A赋值
str1 = HighLighter(str1, keyword, "<font color=red> <a href='B.aspx?id= A '> ", " </a></font> ");
}在 B.aspx 中
String id = Request.QueryString["id"].Tostring();我想捕捉循环中的i值 然后通过<a href>传到B.aspx 页面去 可是接收到的是字符 A然后我照网上说的改成 <a href='B.aspx?id= <%=A%> '> 结果传到B.aspx 页面时
地址栏里显示……B.aspx?id=<%=A%> 却得不到我要传的值求解决方法!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货