Command Line parameters windows app hyperlink

T

Tarun Mitra

I have not been able pass the parameter with a space in an hyperlink on a
..aspx page something like
<asp:HyperLink NavigateUrl="http://localhost/syskiosk/test.exe John"
id="hlEditDetails" runat="server">Edit Details </asp:HyperLink>

I need to know if it is possible to pass parameters to a windows .exe
application through a Hyperlink? If yes then what is the best way of doing
this.

I also tried to pass the parameter by using a ? in place of a space but then
the parameters inside the .exe had lot of junk attached to it and also the
application could not read the normal .config as it started look for a
different .config file dependent upon the parameter being passed. I can read
the command line parameters in a windows .net app when I pass them through
the cmd window but not through a Hyperlink.

Any help would be highly appreciated.

Tarun.
 
H

Herfried K. Wagner [MVP]

Tarun Mitra said:
I have not been able pass the parameter with a space in an hyperlink on a
.aspx page something like
<asp:HyperLink NavigateUrl="http://localhost/syskiosk/test.exe John"
id="hlEditDetails" runat="server">Edit Details </asp:HyperLink>

I need to know if it is possible to pass parameters to a windows .exe
application through a Hyperlink? If yes then what is the best way of doing
this.

Untested: Replace the " " between the path and the argument with "%32".
 
T

Tarun Mitra

Hi Cor,

I am trying to place a hyperlink to a .net windows application placed on
the server so then clients can access it. We have a specific requirement to
display a windows forms based application when a user clicks on the link.
Everything works fine the only issue is that I am not able to pass
paremeters to it through a Hyperlink. I can pass parameters to it through
the command line. If there is an alternate way of doing this please let me
know.

Tarun.
 
C

Cor Ligthert

Tarun,

When you look in the VisualBasic resource kit than you should be able to see
how Microsoft did it with that.

I think however that this will more and more be protected.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top