Silverlight URL传值

来源:互联网 发布:中山大学翻译学院知乎 编辑:程序博客网 时间:2024/05/16 14:22

例如:http://localhost:6308/Index.aspx?age=22&sex=男,从中获取age和sex

在SL端App.xaml.cs中

        private void Application_Startup(object sender, StartupEventArgs e)        {            //获取URL中的参数集合            IDictionary<String, String> paras = HtmlPage.Document.QueryString;            RootVisual = new MainPage();        }


链接:APS和Silevrlight的互通讯,http://www.cnblogs.com/chengxingliang/archive/2011/04/14/2015085.html。


0 0
原创粉丝点击