Simple Shell command problem

  • Thread starter Thread starter Reda
  • Start date Start date
R

Reda

Hello everybody,

I have a problem I am trying to open window form from asp .net web
application. I am using linkbutton, by clicking this should open a
window form. I don't get any errors, but a window form won't come up.
Please help anybody.

my code:

Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles LinkButton1.Click

Dim s As Integer
s = Shell("C:\inetpub\wwwroot\Example2\survey.exe",
AppWinStyle.NormalFocus)

End Sub


Thanks alot. Reda
 
And who should that app open for? ASP.NET runs on the server. If no one is
logged in, where should this app open up? Even if someone is logged in, it
is highly unlikely that you have properly configured ASP and IIS to allow
the system to open a windows app that will interact with the desktop.

Are you trying to open the app on the client's PC?

--- Nick
 

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

Back
Top