Solved

Menubar not getting displayed with window.open()

Posted on 2008-10-22
1
481 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now