?
Solved

Menubar not getting displayed with window.open()

Posted on 2008-10-22
1
Medium Priority
?
487 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 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Suggested Courses

800 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