Getting A New Session In IE Using SHDocVw.InternetExplorer?

Jun 4, 2010

We are using SHDocVw.InternetExplorer in VB.Net to navigate to a web page and insert the login credentials since we have to log into multiple accounts throughout the day. We want to be able to be logged into to multiple accounts in different windows at the same time, but I don't know how to get a new session started.If I log into account A, and then try to log into account B, it opens a new window but is automatically account A, since the browser remembers being logged in with that session.Is there a newSession or something similar that I can call that will get around this problem?

Edit: is this something can can be done using the Navigate function by setting a header?

View 1 Replies


ADVERTISEMENT

Hide Browser Control In SHDocVw.InternetExplorer?

Sep 22, 2010

I need to temporarily hide the control in SHDocVw.InternetExplorer (IE8) that displays the contents of a web page. Setting the SHDocVw.InternetExplorer.Visible property causes the entire form to be hidden. I only need to temporarily hide the control that displays the web page (i.e., the control that is analogous to System.Windows.Forms.WebBrowser in .Net). The Internet Explorer form and all other controls (including the tab that is associated with the web page) should remain visible.

My first thought is to iterate through all of the child controls of SHDocVw.InternetExplorer, search for the control that displays the web page and then set its Visible property, but I'm not sure how to do this because SHDocVw.InternetExplorer is a COM object.

View 4 Replies

SHDocVw.InternetExplorer In ShellWindows Returning Too Many Objects

Sep 13, 2011

The following line of code return several InternetExplorer objects even though I have only one browser window open (no tabs) and only one iexplore.exe process running. How do I only get the open browser window object?For Each ie As SHDocVw.InternetExplorer In shellWindows

View 1 Replies

Asp.net - Adding A Session ID To A Link For Automatic Session Start?

Dec 8, 2011

I am storing a session variable that a user types into a textbox. With their valid input, their session gets created and they get a little more functionality than the regular end users of the site.I was wondering if it is possible to find a way to add someone's session variable to the end of a URL. This way we can email a link to one of our clients, they click it, and their session has automatically begun. They already have the textbox to enter their code into, but I was told that it would be much easier for the users to just click a link that will start their session.

View 1 Replies

Session Id Or Session Number Of The Connection With Mssql?

May 28, 2009

On startup of my software which i developed in vb.net, it connects to mssql server. I want to have session id or session number of the connection with mssql. I'm sure it is unique number and i want to use this session in my software for different purposes. My question is

1. is there anything like session id or session unique number when you connection mssql server

2. if yes to 1 then how i can get it in vb

View 1 Replies

Custom Text In InternetExplorer AddressBar?

Sep 29, 2010

Is it possible to show custom text in the AddressBar of SHDocVw.InternetExplorer (IE8) without causing IE to navigate to a different link?For example, I want to show a page that is saved at K:ReportsSmith_JohnReport.html, but I want the AddressBar to display "John Smith's Report".

View 1 Replies

Internetexplorer Determine The Child Window?

Jun 2, 2010

in outlook, I use the code below.I open an url, than a second one.I want that the second has the same properties than the first. That is not the case with my code.How can I determine what is my second window, let's call it child, so that I can then do

Sub open2windows()
Dim IE
Set IE = Nothing

[code]....

View 13 Replies

InternetExplorer Events Not Thrown During Refresh?

Oct 29, 2010

I noticed that the BeforeNavigate2, NavigateComplete2 and DocumentComplete events are not thrown by SHDocVw.InternetExplorer if the user clicks the Refresh button. I need to handle all of these events when our users navigate to various links.

View 3 Replies

Close Pop-up Window Using Shdocvw?

Sep 22, 2011

I used to close pop-up windows in VBA using the following [code]...

You can see I have to check if the pop-up was opened and then close it.

I've migrated to VB.NET e2010 and it doesn't work.

I've found how to handle events and use the NewWindow to cancel the opening of the pop-up.

Unfortunately by cancelling instead of closing after it was opened, it causes a script error by JavaScript on the main page.

View 2 Replies

How To Retrieve HTML From SHDocVW

Mar 5, 2012

I would like to ask a question with SchDocVW Internet explorer control.I added the reference "Microsoft Internet Controls" forum. [code]Could anyone give a known-good working example of how SHDocVW can be used to retrieve HTML contents reliably using VB?

View 4 Replies

Get Page Status When Using InternetExplorer.application Object?

Aug 19, 2009

I have a leagcy application written in VB6 which makes posts to URLs using the InternetExplorer.application object.Once a post is made i would like to be able to see the status which was returned (i.e. 404 - page not found)

I can't find any properties of the object which will give me this information,

View 1 Replies

VB 2010 InternetExplorer Unable To Detect BeforeNavigate2?

Apr 5, 2011

[code].....

View 2 Replies

Change Reference From Ieframe.dll To Shdocvw.dll?

Mar 11, 2011

I'm trying to use the microsoft browser in my .net program. When I add the "Microsoft WebBrowser" control, it is referencing ieframe.dll. How to I make it reference shdocvw.dll? I'm using vs2003.

View 1 Replies

Create Windows Service Using SHDocVw.dll In .net?

May 10, 2012

I have tried to create windows service using SHDocVw.dll in vb.net, but it generates error The error is could not load SHDocVw.dll into windows service.How to fix this issue?

View 1 Replies

Create Windows Service Using SHDocVw.dll?

May 10, 2012

I have tried to create windows service using SHDocVw.dll in vb.net, but it generates error The error is could not load SHDocVw.dll into windows service.

View 1 Replies

How To Work With Internet Explorer And SHDocVw

May 27, 2010

I am facing trouble in my application. What I need is when I press search button a URL should be passed to IE. Irrespective of how many times I press Search. Every time it should open in same windows instead of opening in a new internet explorer. I have used shdocvw.dll for the same. Here is my code: I have decleared following as global decleration:

[Code]...

View 1 Replies

Why Does ShDocVw.ShellWindows.Count Returns 0

Jun 17, 2009

I am using VB2008. I use the following code snippet within my code:

[Code]...

This is running on an XP SP3 system (no Vista). The browser being used is IE7. Everything is fully patched. Normally, the code works just fine. The users using this program *always* have lots of open IE windows. This normally returns the correct number of IE sessions that are open. (I then cycle through the windows to find the IE session with a particular URL.)

[Code]...

View 1 Replies

VS 2008 Create Windows Service Using SHDocVw.dll In .net?

May 10, 2012

I have tried to create windows service using SHDocVw.dll in vb.net, but it generates error

The error is could not load SHDocVw.dll into windows service.

How to fix this issue? if you have any solution then, give me the links or urls.

View 1 Replies

CreateObject (InternetExplorer.Application) With Protected Mode ON With Trusted Site

Sep 13, 2010

I have one project created with VB 6.0. Step to reproduced this issue,

1. Start Internet explorer and add the site "[url]" to trusted site. now set protected mode check box to Off for the trusted site zone.

2. Open the Visual Basic 6.0 and created standard Exe project.

3. From Tools -> references add "Microsoft Internet Controls".

4. Copy and Paste below code. [Code]

View 1 Replies

Error Stating That SHDocVw.dll Isn't A Valid Type Library

Apr 25, 2011

Having trouble compiling when I have a reference to SHDocVw.

I've done some searching and found that tlbimp is the tool needed and to use my solutions key, however I am getting an error stating that SHDocVw.dll isn't a valid type library.

View 1 Replies

SHDocVw.ShellWindows Not Giving Me The Proper Result For The Internet Explorer In Windows Server 2008?

Jun 18, 2009

I found one problem Windows Server 2008. please refer the following code. it gives me the "ieplorer.exe" while i am running this code in XP or 2003, but while I am running this code in Windows Server 2008 it is not giving me the proper result. it gives me Explorer.EXE" insted "ieplorer.exe".before run this command you have to add reference of shdocvw.dll in your project. i am using the VB 6.0

Dim IE As SHDocVw.InternetExplorer
Dim MainIE as SHDocVw.InternetExplorer
Dim sws As SHDocVw.ShellWindows

[code].....

de my MainIE Object will set to my Previously stored handle( In TmpStoredHandle) . Does anybody know that how can i get the existing IE(Opened Internet Explorer) detail with the help of SHDocVw.ShellWindows in Windows Server 2008? with this API i can get all the opened windows with Its handle

View 1 Replies

Retrieve Url Once A Page Has Been Opened With "InternetExplorer.Application" Component?

Jun 18, 2010

I have some code I am trying to get to work. I open a url and then I want to get that same url address from the opened we page web. For some reason when I place parameters in the object.navigate statement the locationURL comes back empty

[Code]...

View 2 Replies

Way To Do A 'webbrowser' Without Using WEbbrowser Control That Is Based On Internetexplorer?

Jan 1, 2011

Ive tried to edit option on the webbrowser control, example javascript enable/disable. but found out that it uses IE's option and cannot be changed.So my question is: Is there a way to do a "webbrowser" without using the WEbbrowser control that is based on internetexplorer? If it is, can i change option example flash and so on?

View 6 Replies

.net - Get Web Session From Cookie?

Nov 17, 2011

I'm trying to do an scrape a web page but in order to Post the data I need a web session ID like

web_session=HQJ3G1GPAAHRZGFR

How can I get that ID?

My code so far is:

[Code]....

View 1 Replies

Asp.net - .net Starting A New Session?

Feb 26, 2011

I have a page, a session starts on page load (using global.asax) the user may not move from (or interact with) that page for a long while and I dont want to increase the session timeout. When the session times out after say.. 20 minutes, I want to start a new one, without moving from the page. I also don't want constant keep-alives i want to do it via another method (timer, button press...)

View 1 Replies

Asp.net - Can't Get Session Variable

Jan 14, 2011

Partial Class Preferences_MyPreferences
Inherits System.Web.UI.Page
Dim userID As String = Session("UserID")

This is just a page in asp.net. I want to be able to grab the Session("UserID") but every time I try, I get this error:

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the \ section in the application configuration.

If I put that Dim userID inside say the Page_Load Event, then it works fine. Why does it have to be inside an event? I want to dim it once, and use it throughout the page.

View 3 Replies

Asp.net - Get The Value From 2-d Arraylist In Session?

Sep 5, 2011

I have an 2-d arraylist with 2 fixed columns and dynamic rows. The arraylist will be assigned to the session variable at the end of the code below. My question is how can loop thorugh the arraylist from the session to get its value?

If .SQLDS.Tables(.sSQLDSTbl).Rows.Count > 0 Then
Dim NoOfAdjType(1, .SQLDS.Tables(.sSQLDSTbl).Rows.Count - 1)
For iRow As Integer = 0 To .SQLDS.Tables(.sSQLDSTbl).Rows.Count - 1

[Code].....

View 3 Replies

Asp.net - Session Becoming Null?

Jun 4, 2012

We have implemented exam on a single page and store the option in view state as users selects the same. On select of next question page is loaded again. Sometime "If Session("User") = """ turns out true and user logs out.I did setup session on first time page load as

Session.Timeout = 340

Also in web config file session timeout is 2 hours.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Session("User") = "" Then
Response.Redirect("Default.aspx")

[code]....

View 3 Replies

Asp.net - Session Value Is Not Changing?

Jan 15, 2010

Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack = True Then

[code]....

Three buttons-ABC,CBA and Show. if you click on ABC and then Click on Show button The textbox shows "ABC" but when I Clicking on CBA button And then Click on Show button The textbox shows again "ABC". IsPostback property will true on each time the page is posted to the server. So the session reset the value.

View 3 Replies

Asp.net - Using Session Variables In IE?

May 14, 2012

I have an ASP.NET application that I am developing. I'm using session variables within the app.In Firefox & Chrome, they all work.But in IE (ver 9), there's one variable that's not working. I'm not sure if it's a storage or a retrieval (or both) at this point. The variable in question that I'm storing is a List(T) type. It's the only one of it's kind that I'm using. Can't help but think there's a correlation there.One other old post mentioned the possibility that cache is causing the problem, but I didn't understand the answer very well.

Dim Rec_IDs As New List(Of String)
Rec_IDs = Session("Rec_IDs")
and
Dim Rec_IDs As New List(Of String)

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved