Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
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 1:05am
Edited 22-Sep-11 1:46am
CodingLover at 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 at 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 at 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 at 22-Sep-11 6:07am
your question is vague, elaborate it, what are you trying to do?
CodingLover at 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 at 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 at 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 at 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
0 OriginalGriff 476
1 Sergey Alexandrovich Kryukov 210
2 CHill60 195
3 F-ES Sitecore 120
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,061
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176

Advertise | Privacy | Mobile
Web01 | 2.8.150326.1 | Last Updated 22 Sep 2011
Copyright © CodeProject, 1999-2015
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