Click here to Skip to main content
13,087,810 members (79,171 online)
Rate this:
Please Sign up or sign in to vote.
See more:
how can i remove toolbar,menubar of website? I want my application to show only titlebar. I am using C# in code behind and want to display .aspx file in the window which has no toolbar. Thanks in advance.
Posted 22-Sep-11 0:05am
Updated 22-Sep-11 0:46am
CodingLover 22-Sep-11 6:06am
You want to do this on the main browser or in a separate browser window that your site kick-off?
KalaiyarasiK 22-Sep-11 6:35am
Separate browser.We are developing an application which is an website. we want to hide toolbar so that only the site along with the titlebar is visible to the users. Also we want to decrease the window size.
CodingLover 22-Sep-11 11:37am
Then simply kick off a JavaScript code,,'title','width=840,height=600,titlebar=0,channelmode=1,fullscreen=0,scrollbars=1,status=0,toolbar=0,menubar=0,location=0,resizable=1');

You can see most of the parameters above. Those are the only I have remember at this time.
Uday P.Singh 22-Sep-11 6:07am
your question is vague, elaborate it, what are you trying to do?
CodingLover 22-Sep-11 6:11am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check out the javascript that takes parameters which let you control all that.[^]

Good luck!
KalaiyarasiK 22-Sep-11 6:49am
I tried that. window opened but didn't show any content. In addition i use master page. I don't know whether that have an effect on this.
KalaiyarasiK 22-Sep-11 6:52am
I gave that code inside the header content of home page. like this.
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript" language="JavaScript">'Home.aspx', 'Login', 'maximize=true,top=0,left=0,height=100%,width=100%,status=yes,resizable=yes,toolbar=no,menubar=no,location=yes,fullscreen=true, scrollbars=yes, location=no');
firozkhan1 19-Mar-12 12:33pm
after inter the password in loginpage the redirect to home page .. but loging page are not close .. i use this code in submit button in loging page
" ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "aa", "'Home.aspx','','width=800,height=600,resizable=1,close=1')", true);
can any one tell me solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 22 Sep 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100