Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2006, 05:32 AM
Authorized User
 
Join Date: Nov 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to hide IE's addressbar, toolbar and menubar?

hi all.
i have an aspx page and want when client opens it, address bar, menu bar, statusbar and toolbar of the client's browser become hidden and also i want to be able to set the size of browser.
please help me.

 
Old March 29th, 2007, 08:56 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Has anyone resolved this as I am interested in doing the same

<SamP>
 
Old March 29th, 2007, 09:00 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hiding the toolbars can not be done server side; you will need some sort of ActiveX control that will hide these elements.

Setting the size of the browser window can be done through Javascript.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 9th, 2007, 11:34 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to loworth
Default

 JavaScript

<script language=javascript>
    function openpage(htmlurl)
    {
        var newwin=window.open(htmlurl,"newWin","toolbar=no,lo cation=no,directories=no,status=no,scrollbars=yes, menubar=no,resizable=yes,top=100,left=200,width=65 0,height=300");
        newwin.focus();
        return false;
    }
    </script>

 
Old April 10th, 2007, 12:48 AM
Authorized User
 
Join Date: Nov 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to akhilhp
Default

Good One... It has worked..
 
Old April 12th, 2007, 06:32 AM
Authorized User
 
Join Date: Dec 2006
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to deb1980
Default

Hi,

Will any popup blocker block the above code?

---
Best regards,

Debashis
 
Old April 12th, 2007, 09:02 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have found that code like that gets blocked by popup blockers if it's executed automatically/immediately. For example if it's called by the body.onLoad event. However, when called "manually" by a user click event, it may not get blocked. You'll have to experiment to see for sure, and different blockers will likely work differently.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control IE's toolbar in javascript toshi Javascript 0 October 11th, 2006 12:44 AM
Hide the Crystal Toolbar while printing reports smartconsultant Crystal Reports 0 July 31st, 2006 12:42 PM
Hide toolbar SoC Javascript How-To 3 September 15th, 2004 01:15 PM
window w/o menubar,toolbar ... silver_cuts Classic ASP Basics 6 June 29th, 2004 07:27 AM
ADP Menubar ginoitalo Access 2 April 11th, 2004 11:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.