473,396 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
__________________________________________________ ________________
Nov 17 '05 #1
2 1366
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
__________________________________________________ ________________

Nov 17 '05 #2
"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,

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
jo***********@surfcontrol.com
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Johnny Greystoke | last post by:
Hi I have a problem which may not be directly Js related, but appears to be. Last week, I started getting a problem when (1) clicking on a link that wanted to use window.open and (2) clicking...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
7
by: Mark | last post by:
Hello; Here is what I wish to do: Click on a PDF link and have it open as a full screen window - not as a predetermined size. Sounds simple? I want to run the command from within the...
8
by: lauren quantrell | last post by:
When I open an Access form I can have no recordset specified, then in the form's OnOpen event I can do something like: Me.paramaters = "@SomeColumn = 22)" Me.recordsource = "dbo.sproc123" But I...
6
by: Bruce | last post by:
I am doing development work on an asp.net app and a web service on a Win XP Pro SP2 development workstation, using vs.net 2003. For reasons that I wont try to explain here, I recently moved the...
2
by: carlor | last post by:
Hi there, I have a form that contains a link button. When the user clicks the link button I need to enable a couple of other buttons on the page and open a new browser window giving it focus...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
22
by: robertgregson | last post by:
Using C#, .NET3.5, Visual Studio 2008 and WCF on Windows VISTA SP1, I have written a service, service host (as a C# console application) and a client. The service uses...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.