So I am currently working in ASP.Net and a bit stuck.

I obtain the full html that I wish to render into the tab from a WSDL request and then need to find a way to load a new tab in the browser and display that information.

I have currently only found

string script = " <script type=\"text/javascript\">  window.open('http://www.codeproject.com/Questions/532873/Howplustopluscodeplustoplusopenplusnewplustabplusi');   </script> ";
            //  this.Page.ClientScript.RegisterStartupScript(typeof(Page), "alert", script);
            ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", script, false);

On the web however this loads a pre-defined page and not HTML I wish to define. Is there a way to do this?

Edited by JorgeM: Move to asp.net

4 Years
Discussion Span
Last Post by Mike Askew


I won't have a web url to open, simply raw html that I wish to view.


Hmm. Ok. I see. How about something like this? I'm not by a PC to do some testing. I generally display content that I've consumed from a web service in a modal window on the same page or some other element but I don't believe I've tried it exactly this way in a separate window/tab. You may encounter issues with pop up blockers though using this approach.

 var w = window.open();
 var data = rawHTML
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.