473,322 Members | 1,911 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

collapsible panel and window.open javascript in ASP.net

I am working on a ASP.net 2.0 version and I want to click a button to open a window. I was using window.open to write at vb side.
Response.Write("<Script language='JavaScript'>window.open('Report.aspx"')</Script>")

It works fine and open the Report.aspx at another window, however, my parent window contains a collapsible panel which can't function after clicking that button. Why is it happen? Can the collapsible panel and window.open work together?
Nov 14 '07 #1
5 4205
Plater
7,872 Expert 4TB
Using Response.Write() has a habbit of overwriting designer code.
Look for ways to insert it normally.

Such as the onClientClick function of buttons.
Nov 14 '07 #2
Frinavale
9,735 Expert Mod 8TB
I am working on a ASP.net 2.0 version and I want to click a button to open a window. I was using window.open to write at vb side.
Response.Write("<Script language='JavaScript'>window.open('Report.aspx"')</Script>")

It works fine and open the Report.aspx at another window, however, my parent window contains a collapsible panel which can't function after clicking that button. Why is it happen? Can the collapsible panel and window.open work together?

Instead of using Response.Write try using :

BTN_OpenInNewWindow.Attributes.Add("onclick", "javascript:window.open('Report.aspx');")

If you're still having problems after that let us know.
Nov 15 '07 #3
Instead of using Response.Write try using :

BTN_OpenInNewWindow.Attributes.Add("onclick", "javascript:window.open('Report.aspx');")

If you're still having problems after that let us know.

Thanks Frinavale! It really works when using this statement!
Nov 19 '07 #4
Thanks Frinavale! It really works when using this statement!
Hi i am also facing similar problem, but i have done the same way that has been suggested. This doesn't work for me.
Sep 8 '08 #5
Frinavale
9,735 Expert Mod 8TB
Hi i am also facing similar problem, but i have done the same way that has been suggested. This doesn't work for me.
Could you please provide more details about your problem so that we can help you better. Include details like what you have tried so far, what do you think might be the cause to the problem etc.

-Frinny
Sep 8 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Jonathan | last post by:
Hello All, I am in the process of creating a 2/3 level collapsible/exspanible menu (called "nav") where users can click on a category and have the submenus appear beneath it and so on (allow...
7
by: Kamal | last post by:
Hello all, I have a very simple html table with collapsible rows and sorting capabilities. The collapsible row is hidden with css rule (display:none). When one clicks in the left of the...
1
by: probashi | last post by:
Hi, Is there any events associated with collapsible panel related to expand and collapse behavior. I would like to execute some code (either client side or server side) when any of these...
1
by: mahesh123 | last post by:
I am using Collapsible Panel in my project.But in other form of my project i want to use collapsible panel inside other Collapsible panel.Is it possible. Both panels are to be dinamic.Is it possible...
0
by: =?Utf-8?B?R2lvcmdpbw==?= | last post by:
Hi, I am having a problem and I need some help. I have a listview with a collapsible panel that has a updatepanel and listview inside updatepanel and I have a button that triggers the...
0
by: wojski696969 | last post by:
Hi.. I'm using ASP.NET AJAX Control Toolkit. I've got collapsible extender (CE) putted inside of modal popup extender (MPE), and there is a problem if i scroll the page when collapsible area is...
4
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even...
5
by: veenna | last post by:
i have a grid inside a collapsible panel in my page. on expand of collapsible panel i want to bind data to grid. how can i do this? how to get the events of collapsible panel. please help ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.