Solved

Menubar not getting displayed with window.open()

Posted on 2008-10-22
1
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

728 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