Open a new browser window...

R

Rich Wallace

Hi all,

I have a web application that extracts data from a SQL Server database and
loads a datagrid. One of the columns contains a blob image of XML data that
I want to display to the user if they select the 'View XML' button. I pull
the XML as desired but I'm having difficulties displaying it the way I'd
like...

I want to be able to extract the XML and open a new browser window and
display the xml in the new window. I've tried using the Process.Start
method but all it does is start an application and leaves it running in the
background and never shows the data.

One idea I tried is the load the xml data into an XmlDocument object and
save the file to the web server, then try opening the file via IExplore.exe
but nothing is working.

Any ideas??

TIA
-Rich
 
C

Cor

Hi Rich,

Is this what you're looking for?

\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this helps a little bit?

Cor
 
R

Rich Wallace

How would this work since the first ' in 'http... initiates a comment in VB?

Thank you for the response
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top