473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Hiding IE browser toolbar with ASP.NET

Anyone know a way to hide all IE's toolbars when and
ASP.NET page loads?? should I do this with Javascript or
can I use C# to do this.

thanks
Jul 21 '05 #1
2 8802
Greg,

With my experience writing web applications, the only way to control the
showing of toolbars in a browser window is to handle it before the page is
loaded. I believe this is because the browser window itself is being built
client side. I have written several .Net web applications, and I handle
this by using a separate window to open the page that you want the user to
use. There may be a better way to do this, but I am not aware of it, so I
use VBScript to remove the toolbars of the desired page. Obviously you can
use JavaScript in place of the VBScript and achieve the same result.

For instance:
<SCRIPT LANGUAGE="vbscript">
window.open "WebPage.aspx","null","resizable=0"
</SCRIPT>

Obviously the down side to this is that you have a window open that you
don't really need, or even want. There may be some way to do this via
server side code using C# or VB, but I am not aware of it at this time, and
do not believe it is possible. I did look into for some time, and didn't
find anything, but I also didn't want to get wrapped around the axle with
something that seemed more trivial than the purpose of the application
itself.

Here is a link explaining the Window.Open method.
http://msdn.microsoft.com/library/de...ods/open_0.asp

Hope this helps.

Anthony
"Greg Williams" <an*******@discussions.microsoft.com> wrote in message
news:29****************************@phx.gbl...
Anyone know a way to hide all IE's toolbars when and
ASP.NET page loads?? should I do this with Javascript or
can I use C# to do this.

thanks

Jul 21 '05 #2
Yes. That was my thinking also. didn't want to spend day's
trying to figure out a way to do this without having a
separate window open. Thought with .Net someone may have
figured a "cleaner" way to do this.

Thanks for confirming this.
-----Original Message-----
Greg,

With my experience writing web applications, the only way to control theshowing of toolbars in a browser window is to handle it before the page isloaded. I believe this is because the browser window itself is being builtclient side. I have written several .Net web applications, and I handlethis by using a separate window to open the page that you want the user touse. There may be a better way to do this, but I am not aware of it, so Iuse VBScript to remove the toolbars of the desired page. Obviously you canuse JavaScript in place of the VBScript and achieve the same result.
For instance:
<SCRIPT LANGUAGE="vbscript">
window.open "WebPage.aspx","null","resizable=0"
</SCRIPT>

Obviously the down side to this is that you have a window open that youdon't really need, or even want. There may be some way to do this viaserver side code using C# or VB, but I am not aware of it at this time, anddo not believe it is possible. I did look into for some time, and didn'tfind anything, but I also didn't want to get wrapped around the axle withsomething that seemed more trivial than the purpose of the applicationitself.

Here is a link explaining the Window.Open method.
http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/methods/open_0.asp
Hope this helps.

Anthony
"Greg Williams" <an*******@discussions.microsoft.com> wrote in messagenews:29****************************@phx.gbl...
Anyone know a way to hide all IE's toolbars when and
ASP.NET page loads?? should I do this with Javascript or
can I use C# to do this.

thanks

.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Tom Szabo | last post by:
Hi All, Just wondering there is any other way to remove the toolbar from the browser than using " ...toolbar=no ..." in the window.open(...)
2
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
15
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
8
by: Jho | last post by:
Is it wise to do the following to hide html source and other info. I plan to do a popup window which would close my existing web page and popup a window in its place without toolbar and...
0
by: Brian Mitchell | last post by:
Is it possible to create an auto hiding toolbar from a windows form? I've turned a windows form into a custom toolbar and would like it to dock on any side of the screen as well as auto hide. I...
2
by: Greg Williams | last post by:
Anyone know a way to hide all IE's toolbars when and ASP.NET page loads?? should I do this with Javascript or can I use C# to do this. thanks
0
by: Jeff | last post by:
The code below works to open an new browser window without toolbar, etc. I'm also attempting to hide the vertical scroll bar. Could someone tell me what I need to add to this code to do so (in a way...
3
by: Andy Lim | last post by:
Hi all, In my recent asp.net (2.0) project, I want to give a desktop-application look and feel to my users. I think I'll do it by hiding the browser's default menu & toolbar right from the...
1
by: charandevi | last post by:
Hi all, My requirement is to hide the toolbar of browser on the same page itself for IE and Mozilla Firefox using javascript. Is it possible? If yes, kindly let me know the code.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.