通过href标签传递值 [英] passing value thru href tag
本文介绍了通过href标签传递值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
< a href =" http://www.xyz.com.sg/WebForm1.aspx?Name="+ PersonName.ToString()+">单击此处</a>";
如何再添加一个字段?
帮助pl
问候,
Praveena
Hello all,
"<a href="http://www.xyz.com.sg/WebForm1.aspx?Name=" + PersonName.ToString() + ">Click Here</a>";
How to add one more field?
help pl
Regards,
Praveena
推荐答案
如果您在谈论查询参数,则可以使用&
符号分隔参数.
If you are talking about query parameters, you can use the&
symbol to separate your parameters.
<a href="http://www.xyz.com.sg/WebForm1.aspx?Name=" + PersonName.ToString() + "&ID=" + PersonID.ToString() + ">Click Here</a>
尝试类似的方法:
Try something like this:
"<a href="http://www.xyz.com.sg/WebForm1.aspx?Name=" + PersonName.ToString() + ">Click Here</a>";
祝你好运!
Good luck!
就像这样:
like this:
<a href="http://www.xyz.com.sg/WebForm1.aspx?Name=" + PersonName.ToString() + "&age=12" + ">Click Here</a>
您可能需要阅读更多有关此内容.
http://en.wikipedia.org/wiki/Query_string [
You might want to read more about this.
http://en.wikipedia.org/wiki/Query_string[^]
这篇关于通过href标签传递值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文