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" <je******@gmx.net> wrote in message
news:%2***************@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
__________________________________________________ ________________