Simple Shell command problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Reda

    #1

    Simple Shell command problem

    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_Cli ck(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles LinkButton1.Cli ck

    Dim s As Integer
    s = Shell("C:\inetp ub\wwwroot\Exam ple2\survey.exe ",
    AppWinStyle.Nor malFocus)

    End Sub


    Thanks alot. Reda
  • Nick Malik

    #2
    Re: Simple Shell command problem

    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

    "Reda" <reda246@hotmai l.com> wrote in message
    news:5f16a81b.0 409142016.30485 bd0@posting.goo gle.com...[color=blue]
    > 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_Cli ck(ByVal sender As System.Object, ByVal e As
    > System.EventArg s) Handles LinkButton1.Cli ck
    >
    > Dim s As Integer
    > s = Shell("C:\inetp ub\wwwroot\Exam ple2\survey.exe ",
    > AppWinStyle.Nor malFocus)
    >
    > End Sub
    >
    >
    > Thanks alot. Reda[/color]


    Comment

    Working...