Solved

Menubar not getting displayed with window.open()

Posted on 2008-10-22
1
482 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now