首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

怎样获取“超链接”传递的“参数”解决方法

2012-04-16 
怎样获取“超链接”传递的“参数”怎样获取“超链接”传递的“参数”?在“asp.net 页面”下有一个超链接“ElecMonito

怎样获取“超链接”传递的“参数”
怎样获取“超链接”传递的“参数”?

在“asp.net 页面”下有一个超链接“'ElecMonitoring.aspx?MonitorType=3'”。

该超链接指向载有“Silverlight(xap页面)”的“asp.net”页面。

请问:怎样在“Silverlight”下获取超链接“'ElecMonitoring.aspx?[color=#FF0000]MonitorType=3'”下的“MonitorType”参数???[/color]

[解决办法]
估计你只能通过截取字符串来实现,先通过Request.QueryString["[color=#FF0000]MonitorType"].ToString()获取就行了。
[解决办法]
学习Silverlight Navigation框架,请参考:

http://silverlightchina.net/html/zhuantixilie/getstart/2012/0216/13842.html

http://silverlightchina.net/html/tips/2011/0809/9628.html
[解决办法]
HtmlPage.Document.QueryString
[解决办法]
嗯,你可以调试一下试试,看看取到的是什么。
[解决办法]
http://localhost:5526/sl.aspx?user=root&password=root

HtmlPage.Document.QueryString取到的是一个字典IDictionary<string, string>
key=user,value=root
key=password,value=root

热点排行