Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
how can i remove toolbar,menubar of asp.net 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
v2
Comments
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 asp.net 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, window.open(path,'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
   
True.

1 solution

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

Solution 1

Check out the javascript window.open that takes parameters which let you control all that.
 
http://www.w3schools.com/jsref/met_win_open.asp[^]
 
Good luck!
  Permalink  
Comments
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">
window.open('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');
</script>
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", "javascript:window.open('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 DamithSL 325
1 Maciej Los 217
2 OriginalGriff 213
3 BillWoodruff 79
4 Jose Garcia Sevilla 75
0 OriginalGriff 7,953
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,454
3 Maciej Los 5,293
4 Kornfeld Eliyahu Peter 4,539


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