473,320 Members | 1,845 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,320 software developers and data experts.

shdocvw.internetexplorer object help

I'm trying to finish up an ASP.Net application but one requirement has got
me stumped. I have a databound listbox that contains my information. The
requirement is to open up another instance of IE that shows detailed
information about the selected item in the listbox.

I've tried using JavaScript to handle a new "double click" event on the
listbox, but the problem is that setting the javascript arguments requires a
roundtrip to the server and "fails" if the user double clicks a different
item than originally selected. I use the term "fails" loosely here. It
actually works but sends the wrong information to the second (or subsequent)
instance of IE.

I'm trying to use COM now to open up a new IE browser. The code to create a
new IE application doesn't give me any errors, and I see a new iexplore.exe
process owned by my ASPNET user in the task manager (and it appears to be
busy at times) but I don't get a new window, nor does it show up in my
current window.

At this point, I don't really care how I accomplish this. I'm not too handy
with client-side programming, so if that's the answer here, I need some
direction.

If anyone's got any experience with this sort of thing, or can lend a hand
at all, your help would be greatly appreciated.

Here's the barebones code I'm trying to execute:

ie = New SHDocVw.InternetExplorer()

ie.Visible = True

ie.Navigate("http://localhost/details.aspx",
BrowserNavConstants.navOpenInNewWindow, "_BLANK")
Regards,

Ryan Clark
Nov 18 '05 #1
2 3843
Ryan Clark wrote:
I've tried using JavaScript to handle a new "double click" event on the
listbox, but the problem is that setting the javascript arguments requires a
roundtrip to the server and "fails" if the user double clicks a different
item than originally selected. I use the term "fails" loosely here. It
actually works but sends the wrong information to the second (or subsequent)
instance of IE.


I would think this approach would work. Why can't you set the value of
each item in the listbox to be some concatenated value, the args you
need to pass and the actual value? If you'd rather postback, on the
postback you should be able to register your client script to do this.
I would try to make that approach work before dealing with the Microsoft
Web Browser. That ActiveX control is very clunky, not to mention
security headaches you might hit, plus it's not portable to different
types of clients (Mozilla, etc.).

--
Craig Deelsnyder
Microsoft MVP - ASP.NET
Nov 18 '05 #2

Hi Ryan,
I have been looking for information on SHDocVW.InternetExplorer to us
in my vb.net windows application (not ASP)
I still have doubts and maybe I won't be able to use it for my purpose
But I was able to display a page. For my first trial I use
"http:\\yahoo.com" and it worked. Then I displayed a page in "M
Documents" folder. As a matter of fact the first time I didn't se
anything because I had not set the "visible" property.
There is an example using C# in C:\Progra
Files\MicrosoftVisualStudio\SDK\v1.1\Samples\Techn ologies\Interop\BAsic\InternetExplorer
(if you are using Visual Studio)
There is a vb.net sample in "www.vbfrance.com/code.aspx?ID=5591". Thi
is in French, but even if you don't understand French you may be abl
to get something out of it.
Good Luck

quantu
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message250419.htm
Nov 18 '05 #3

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

Similar topics

10
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After...
3
by: Tom | last post by:
Hi, I wrote the following code in a c# winform. InternetExplorer ie = new InternetExplorer(); ie.Navigate(url, ref o, ref o, ref o, ref o); The url can be passed to the IE. However, how...
1
by: Eli Allen | last post by:
So now that MS04-004 is out breaking the ability to pass in a password/username through the URL how can we pass in a username and password using SHDocVw in c#? I'm launching IE like this:...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
0
by: Miguel Hernandez | last post by:
H I've experienced problems running the following code in a windows service. Notice that in a windows application it works just fine as spected Private TextoUSD As Strin Friend WithEvents WebUSD...
7
by: Mark | last post by:
I am trying to take a working VB.NET program (the SHOW HTML program from the Halvorson book) and pass in parameter values which are used to build the URL that IE looks up. The original program...
3
by: Jay A. Moritz | last post by:
I have an application that loads IE and iterates through web pages to retrieve information from the page then activates specific controls to retrieve the next page and iterate through that page for...
4
by: Dick Sutton | last post by:
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function...
5
by: SQACSharp | last post by:
I'm trying to automate an action in Internet Explorer.... I'm trying to click an image that open a popup menu. The html code of the iimage look like like <img blabla..OnClick="ShowMenu()"/> I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: 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...
0
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: 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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.