473,327 Members | 2,007 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,327 software developers and data experts.

Invoke IE from ASP.NET

Hi

I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA
Nov 19 '05 #1
7 1279
Do you want to do this on the server, you mean?

Ray at work

"wdewebserver" <wa*****@ananzi.co.za> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi

I would like to invoke a new instance of IE from within a page and pass it
a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA

Nov 19 '05 #2
"wdewebserver" <wa*****@ananzi.co.za> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I would like to invoke a new instance of IE from within a page and pass it
a
URL. How can I do this in C#?


Unless I'm seriously off the mark here, create an anchor tag and set its
target to "_blank"...

<html>
<head>
</head>

<body>
<form>
<a target="_blank" href="http://www.microsoft.com">Click here to
open a new browser window</a>
</form>
</body>
</html>
Nov 19 '05 #3
Yes, as I need to send the URL based on the user selection. The browser
should open in a new window.

TIA
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eZ**************@TK2MSFTNGP14.phx.gbl...
Do you want to do this on the server, you mean?

Ray at work

"wdewebserver" <wa*****@ananzi.co.za> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi

I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA


Nov 19 '05 #4
If you just want an IE open at client, javascript is enough

winodw.open(....)

if you are trying to get content of a webpage at server side, checkout this
post.. it may help..

http://groups.google.com/group/micro...c2d8baf?hl=en&

"wdewebserver" wrote:
Hi

I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA

Nov 19 '05 #5
What Ray was getting at is that this new window would be ON the server..
litterally. The Client wouldn't see it. You are trying to invoke IE ON the
server not FROM the server...

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"wdewebserver" wrote:
Yes, as I need to send the URL based on the user selection. The browser
should open in a new window.

TIA
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eZ**************@TK2MSFTNGP14.phx.gbl...
Do you want to do this on the server, you mean?

Ray at work

"wdewebserver" <wa*****@ananzi.co.za> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi

I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA



Nov 19 '05 #6
Here's what I'm trying to accomplish.

1. The User clicks on the Menu
2. Then based on selection, the application retrieves a URL from the
configuration file.
3. A new Browser window opens.

That's all, I need. TIA
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eZ**************@TK2MSFTNGP14.phx.gbl...
Do you want to do this on the server, you mean?

Ray at work

"wdewebserver" <wa*****@ananzi.co.za> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi

I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA


Nov 19 '05 #7
Menu Item posts back
You read the item they selected
You get your value
You pass it to a clientside javascript call to open a window.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"wdewebserver" wrote:
Here's what I'm trying to accomplish.

1. The User clicks on the Menu
2. Then based on selection, the application retrieves a URL from the
configuration file.
3. A new Browser window opens.

That's all, I need. TIA
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eZ**************@TK2MSFTNGP14.phx.gbl...
Do you want to do this on the server, you mean?

Ray at work

"wdewebserver" <wa*****@ananzi.co.za> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi

I would like to invoke a new instance of IE from within a page and pass it a
URL. How can I do this in C#?

I have tried using SHDOCVW.DLL to no avail.

TIA



Nov 19 '05 #8

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

Similar topics

1
by: John Altland | last post by:
Here is my basic problem. I have a form that executes a cpu instensive algorithm occupying the first thread. When the algorithm is executed another form pops up telling the user the progress that...
1
by: boxim | last post by:
hi all, I'm having a few problems whereby my application is hanging when using the Invoke method of a form's control. Basically, when a user clicks a button on the form, it calls a remote...
2
by: Tom | last post by:
Hi Everybod I want to update some controls in a form from another threads. I did it by passing the form to that thread and calling a delegate with Form1.Invoke, I want to have just one delegeate...
5
by: RickDee | last post by:
Please help, anybody. I am trying to write a program so that it can launch an exe file ( which is also genereated in C# ) and then simulate the button clicking and invoke the methods inside the...
14
by: stic | last post by:
Hi, I'm in a middle of writing something like 'exception handler wraper' for a set of different methodes. The case is that I have ca. 40 methods form web servicem, with different return values...
7
by: Jeff Stewart | last post by:
I need a thread to run a subroutine which updates my main form's progress bar. I've properly marshaled all UI updates to the main UI thread, and after the main thread starts the worker thread, it...
23
by: Thomas Due | last post by:
Hi, I have a class which monitors a TCP socket. This will on occasion raise an event which can be handled by a GUI. Now, I am aware of the if(InvokeRequire) { EventHandler d = new...
6
by: Dom | last post by:
I'm teaching myself about delegates and the Invoke method, and I have a few newbie questions for the gurus out there: Here are some CSharp statements: 1. public delegate void MyDelegate (int k,...
2
by: =?Utf-8?B?a2VubmV0aG1Abm9zcGFtLm5vc3BhbQ==?= | last post by:
vs2005, c# Trying to understand why one way works but the other doesnt. I have not tried to create a simpler mdi/child/showdialog app for posting purposes (I think even this would not be so small...
3
balabaster
by: balabaster | last post by:
I have a class that I want to make thread-safe and am investigating the ISyncronizeInvoke interface and wondering just what it will take to implement this interface. So far the basic concept of my...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.