Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 22-Sep-11 0:46am
v2
Comments
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 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 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 22-Sep-11 6:07am    
your question is vague, elaborate it, what are you trying to do?
CodingLover 22-Sep-11 6:11am    
True.

1 solution

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!
 
Share this answer
 
Comments
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">
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>
MR.FIROZ KHAN 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900