当前位置: 代码迷 >> ASP.NET >> 从xml中想页面传递参数,如何传递!
  详细解决方案

从xml中想页面传递参数,如何传递!

热度:5801   发布时间:2013-02-26 00:00:00.0
从xml中想页面传递参数,怎么传递!!!急
printstr += " <m type=\"p\" symbol=\"3\" symbolName=\"App\" port=\"1\" stattype=\"1\" color=\"33cc33\" size=\"0.08\" flash=\"0\" t=\" " + STCD + "/" + STNM + " \" url=\"http://localhost:4096/main/jiancezhan/yueri.aspx?stnm="+STNM+"\">";

主要是下面的url中的一些转义符怎么弄啊,我现在传了一个stnm这个参数,要是我在想传递一个参数,怎么传递呢!后面在写呢。我弄不清楚那些转义符的作用!

------解决方案--------------------------------------------------------
STNM = STNM + "&STNM2=2222"
------解决方案--------------------------------------------------------
printstr += " <m type=\"p\" symbol=\"3\" symbolName=\"App\" port=\"1\" stattype=\"1\" color=\"33cc33\" size=\"0.08\" flash=\"0\" t=\" " + STCD + "/" + STNM + " \" url=\"http://localhost:4096/main/jiancezhan/yueri.aspx?stnm="+STNM+"&id=1\">";

------解决方案--------------------------------------------------------
printstr += " <m type=\"p\" symbol=\"3\" symbolName=\"App\" port=\"1\" stattype=\"1\" color=\"33cc33\" size=\"0.08\" flash=\"0\" t=\" " + STCD + "/" + STNM + " \" url=\"http://localhost:4096/main/jiancezhan/yueri.aspx?stnm="+STNM+"&abc=" + ABC + "\">";
  相关解决方案