Solved

Menubar not getting displayed with window.open()

Posted on 2008-10-22
1
484 Views
Last Modified: 2013-12-17
Hi experts,

          I have used following code to open a window using c#:

         Page.ClientScript.RegisterStartupScript(GetType(Page), "OnClientClick", "<script>window.open('ViewFile.aspx',null,'height=500','width=800','resizable=yes','scrollbars=yes','toolbar=yes','menubar=1','status=yes');</script>")

     But problem is that the menubar is not getting displayed on the window. I dont know why it is happenning. is there any solution for it?

Please help me.

Thanx in advance.

Regards,
Paramhans
0
Comment
Question by:Paramhans
1 Comment
 
LVL 11

Accepted Solution

by:
alexcohn earned 500 total points
ID: 22775374
In IE7, the menu bar may be hidden unless revealed by the ALT key (see http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx). The end user can choose to always display the menu bar. Since recently, the menu bar is visible by default (see discussion http://blogs.msdn.com/ie/archive/2007/10/04/internet-explorer-7-update.aspx).
Maybe, if you add location=yes to your parameters list, you will see the expected behavior.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question