473,807 Members | 2,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

collapsible panel and window.open javascript in ASP.net

15 New Member
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='JavaS cript'>window.o pen('Report.asp x"')</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 4237
Plater
7,872 Recognized Expert Expert
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 Recognized Expert Moderator Expert
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='JavaS cript'>window.o pen('Report.asp x"')</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_OpenInNewWi ndow.Attributes .Add("onclick", "javascript:win dow.open('Repor t.aspx');")

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

BTN_OpenInNewWi ndow.Attributes .Add("onclick", "javascript:win dow.open('Repor t.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
kirankva
1 New Member
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 Recognized Expert Moderator Expert
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
5862
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 users to click on another category and have that expand). Example:
7
4830
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 expandable row, the hidden row is made visible with css. The problem is when i sort the rows, the hidden rows get sorted as well which i don't want and want to be moved (while sorting) relative to their parent rows. The following is my complete html code...
1
4474
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 events happen (i.e. collapsible panel is expended or collapsed) Thanks
1
1649
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 can any one help me plz. My requirement is I am having different A's. Under each A Can have different B's. For each B can have diffrent C's.
0
3809
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 collapsible panel and this button is outside the updatepanel. The collapsible panel works well when the button is clicked and expands BUT the updatepanel that is inside the expanded panel does not display the other listview! The trigger for update panel...
0
1937
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 visible. I mean the shadow under MPE is getting bogger when CE is showing itself, and restores to previouse size after collapsible panel hides, but.. If i show collapsible panel, scroll the page and then hide that panel, the shadow from MPE stays in...
4
8426
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 onactivetabindexchanged we have called a method loadtabpanel() which is defined in javascript in same page.the problem is it sometime give the message load tab panel undefined. this error does not come regularly. it comes in usercontrol rendering . i...
5
8068
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 regards, veena.
0
9720
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.