开发者

How can we retrieve query string information in a ClickOnce Application?

开发者 https://www.devze.com 2023-01-05 09:16 出处:网络
I made a .NET Windows Forms application that I want to deploy using ClickOnce. However, I will need the application to retrieve the query string parameters passed to it.

I made a .NET Windows Forms application that I want to deploy using ClickOnce. However, I will need the application to retrieve the query string parameters passed to it.

I found this MSDN article and followed its directions (select the check box labeled Allow URL parameters to be passed to application), but it doesn't appear to work:

How to: Retrieve Query String Information in a ClickOnce Application

ApplicationDeployment.CurrentDeployment.ActivationUri is null when the application loads.

eg:

http://example.com/Sample/Sample.application?a=1&b=2

Note: I'm not asking about passing the query string pa开发者_开发问答rameters to the setup.exe installation file for the application to work the first time when it is installed. Just the passing of query string to the application.


D'oh! I needed to enable the same option from the Visual Studio IDE in addition to doing so from MageUI. I don't know how i missed it.

0

精彩评论

暂无评论...
验证码 换一张
取 消