Last post Mar 17, 2009 01:41 PM by borellano
Feb 20, 2009 05:04 PM|borellano|LINK
Not sure if this is the best place to place this question but here it goes.
I am developing an intranet site using VB.net 2005. I have a list of reports and their URL's located in a table. The list is displayed to the user using a Gridview control with select turned on. when the user selects one , the selected index changed event
triggers looking up the URL from the table and stores it in a session variable.
the problem i have is that i now need to open a new web browser window and display the page.
I tried using the envDTE.ItemOperations.Navigate but all of the information provided for this process is written in VB6 and VB2003. In 2005 the DTE proces is not native and when you assigned the ENVDTE.Itemoperatiosn to a shared variable (or any type) and
then try to navigate you get the following error:
Object reference not set to an instance of an object.
so i tried to create an instance but when i try:
ItemOp = DTE.ItemOperations or
ItemOp = EnvDTE.ItemOperations
it gives me an error indicating that this is not possible.
My quesion is, does anyone have the correct syntax for using the envDTE.ItemOperations.Navigate instruction from Visual Basic.Net 2005? None of the microsoft pages or microsoft books provide correct syntax. Or does anyone have any substitute code that can
navigate a user from a protected sub in one page to a new web page?
visual basic.NET 2005
Feb 20, 2009 06:09 PM|rmaiya|LINK
I am curious why u are using DTE to display a user selected page ? am I missing something here ? it should be pretty straight forrward like
<a href="your link from database" target=_blank>click here</a>
Feb 23, 2009 01:32 PM|borellano|LINK
in the protected sub...
Dim OpenVar As
This will open a new page and direct it to the provided URL.
I still cannot get the Navigate script to work; however, this will allow me to move forward.
Mar 17, 2009 01:41 PM|borellano|LINK
The reason why i am doing it this way is because i am passing values in a session variable from page to page. Here is the flow...
User selects an item from a grid cell on the web page, say a part number.
The part number is saved to a session variable
a new page is triggered and the url routed to a details page.
The saved part number is provided to the database select query so that the user can update the content of this item.
the entire time, i need the original page available because it has other information and other functions on it.
So how do i programatically navigate from one web page to a new web page in Visual Basic while keeping the original page open, allowing the user visibility of both and passing session variable values between each page.
visual basic 2005