Open a link from within a Web Service ?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Open a link from within a Web Service ?

    Hi.
    I would like to open an ASP.NET page from a Web Method like this:
    Form my WinForm App:
    OpenLink("Select * From Customers",
    "http://myserver/ReportApp/ShowReport.aspx")

    <(Web Method)> _
    Public Function OpenLink(ByVal sQuery As String, ByVal sURL As String) As
    boolean
    ..... SomeCode to Open Internet Explorer with the URL
    End Function

    How to open that link from within the Web Method ?

    Thanks.
    Jean-Yves


    __________________________________________________ ________________ Jean-Yves
    Mr ICQ#: 36608088 Current ICQ status: + More ways to contact me
    __________________________________________________ ________________


    Jean-Yves Guest

  2. Similar Questions and Discussions

    1. How to open link in new tab using Spry?
      Does anyone know how to open menu web links in a new tab (instead of opening a new window - IE7) using the Spry horizontal dropdown menu? I tried...
    2. URL link to open new window?
      Hello, and thanks in advance for the help... I'm kind of new to Flash programming. I'm trying to get a link to a url to open a new window for...
    3. Force a link to open in IE
      In an internal application. The user receives an email, checked with mozilla mail, and clicks on the link. I would like this link to direct the...
    4. Open a CSV file in MS-Excel via a link
      How can I open a CSV file in MS-Excel via a link on an ASP page? I have an ASP page that allows a user to select a database table, view all of...
    5. Help - Open in New Link
      Something has changed in my computer! I often want to open a photo in a new link by right clicking on the picture and select open in new link, I...
  3. #2

    Default Re: Open a link from within a Web Service ?

    This would be bad design.

    The standard idea is a WebMethod returns SOAP for a client call. The web
    service is on a server, while the calling application is on a client. The
    client may also be a server, but the main idea is the web service simply
    serves up information in an XML format.

    Sticking with good design, you could embed a command that will cause the
    client to open a new page (JavaScript for standard web clients, for
    example). But, you would not open a page on the server.

    Am I missing the point?

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    Author: ADO.NET and XML: ASP.NET on the Edge

    ************************************************** **************************
    ****
    Think Outside the Box!
    ************************************************** **************************
    ****
    "Jean-Yves" <jeanyves@gmx.net> wrote in message
    news:%23NKFPfcXDHA.536@TK2MSFTNGP10.phx.gbl...
    > Hi.
    > I would like to open an ASP.NET page from a Web Method like this:
    > Form my WinForm App:
    > OpenLink("Select * From Customers",
    > "http://myserver/ReportApp/ShowReport.aspx")
    >
    > <(Web Method)> _
    > Public Function OpenLink(ByVal sQuery As String, ByVal sURL As String) As
    > boolean
    > ..... SomeCode to Open Internet Explorer with the URL
    > End Function
    >
    > How to open that link from within the Web Method ?
    >
    > Thanks.
    > Jean-Yves
    >
    >
    > __________________________________________________ ________________
    Jean-Yves
    > Mr ICQ#: 36608088 Current ICQ status: + More ways to contact me
    > __________________________________________________ ________________
    >
    >

    Cowboy \(Gregory A. Beamer\) Guest

  4. #3

    Default Re: Open a link from within a Web Service ?

    "Jean-Yves" <jeanyves@gmx.net> wrote in message
    news:%23NKFPfcXDHA.536@TK2MSFTNGP10.phx.gbl...
    > Hi.
    > I would like to open an ASP.NET page from a Web Method like this:
    > Form my WinForm App:
    > OpenLink("Select * From Customers",
    > "http://myserver/ReportApp/ShowReport.aspx")
    >
    > <(Web Method)> _
    > Public Function OpenLink(ByVal sQuery As String, ByVal sURL As String) As
    > boolean
    > ..... SomeCode to Open Internet Explorer with the URL
    > End Function
    >
    > How to open that link from within the Web Method ?
    >
    > Thanks.
    > Jean-Yves
    >
    >
    Jean-Yves,

    Who is meant to call this web method? The client? What sort of code is the
    client running? Windows forms, or just IE?

    When the web service (which is running on the server) opens IE with the URL,
    on which display should IE display the HTML from the web site denoted by the
    URL?

    Are the client and the server running on the same machine? If not, how would
    the web method (which is running on the server) going to do _anything_ on
    the client?
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139