Re: How do I open a new browser window programmatically?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I understand everything about the Javascript window.open method and how
popup blockers may cause problems when using it. This is why I have been
looking for a way to open a new browser window using ASP.NET without
manually writing the Javascript. But if I do use Javascript, how do I tell
ASP.NET code written in VB.NET to call it? The specific purpose I plan to
use this for is when to open a printable version of a page when the user
clicks a button. I would rather use an ImageButton control than nest and
Image control inside of a HyperLink control with a Target property of
_blank. This way I can use less controls and I would also like to use the
CommandArgument property of the ImageButton control. Thanks.
--
Nathan Sokalski
njsokalski@xxxxxxxxxxx
http://www.nathansokalski.com/

"Steve C. Orr [MVP, MCSD]" <Steve@xxxxxxx> wrote in message
news:OPITS%23IaFHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
> You can open windows with the javascript window.open method.
> Here's more info:
> http://SteveOrr.net/articles/ClientSideSuite.aspx
> http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp
>
> Some popup blockers may foil your plans however, so consider alternate
> designs.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://SteveOrr.net
>
>
> "Nathan Sokalski" <njsokalski@xxxxxxxxxxx> wrote in message
> news:uP4gcJIaFHA.2420@xxxxxxxxxxxxxxxxxxxxxxx
>> How do I open and change properties of (such as size, position, scroll
>> position, visibility of toolbars, etc.) a browser window? Thanks.
>> --
>> Nathan Sokalski
>> njsokalski@xxxxxxxxxxx
>> http://www.nathansokalski.com/
>>
>
>


.



Relevant Pages

  • Re: Transfering control without growing control context -- i.e. how to implement GOTO
    ... the control context is normally referred to as the "control ... language doesn't support Proper Tail Recursion. ... In JavaScript the control stack will grow, ... Globally declared named functions become properties of the javascript global object so they can be referenced, but still with property accessors, as members of that object. ...
    (comp.lang.javascript)
  • Re: Transfering control without growing control context -- i.e. how to implement GOTO
    ... I, for one, attach no absolute an certain meaning to the term "control context" and so have no idea what constructs in javascript it may relate to, and so why 'growing' them may be a problem. ... language doesn't support Proper Tail Recursion. ...
    (comp.lang.javascript)
  • Re: HTML <SELECT><OPTION> Tag With Image and Text
    ... this control could be awesome. ... > public string Text ... > private string WriteJSScript() ... >> it will take javascript to get it done. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VB.Net Horisontal Menu
    ... There is no "menu" control of a Webpage. ... javascript, VBNet and servercontrols. ... This is nothing strange because a button is in fact often used in webpages ... > even my web development is for operational purposes. ...
    (microsoft.public.dotnet.general)
  • Re: altering .UniqueID
    ... javascript call itself where the validation fires off nor is it really ... validators have been fixed to work with Firefox in .NET 2.0". ... Admittedly the control sits inside an ascx (which has a ...
    (microsoft.public.dotnet.framework.aspnet)