| | |
open a new window
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
Hi there, you can try this:
or...
hope that helps you.
Here is a very useful site:
http://www.gridviewguy.com/ArticleDe...sked_Questions
C# Syntax (Toggle Plain Text)
MyListbox.Attributes["onclick"] = "window.open(...);"
or...
C# Syntax (Toggle Plain Text)
<asp: listbox ID="MyListBox" runat="server" OnClientClick="window.open(...);" />
hope that helps you.
Here is a very useful site:
http://www.gridviewguy.com/ArticleDe...sked_Questions
Last edited by majestic0110; May 8th, 2008 at 3:04 pm.
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
•
•
Join Date: May 2008
Posts: 10
Reputation:
Solved Threads: 0
Hi
after double click of listitem in listbox a popwindow will open.i am able to get this using below code but when i clicked on another listitem.i am not able to get a popupwindow.after closing the previous one,able to get current selection.
after double click of listitem in listbox a popwindow will open.i am able to get this using below code but when i clicked on another listitem.i am not able to get a popupwindow.after closing the previous one,able to get current selection.
ASP.NET Syntax (Toggle Plain Text)
<script type="text/javascript" language="javascript"> function display() { debugger; var list=window.document .getElementById ("ListBox1"); var text=list.options[list.options.selectedIndex].text; var text1=list.options[list.options.selectedIndex].text; if(text==text1) window.open("addform.aspx","mypage","scrollbar=no,height=500,width=300,resize=0,menubar=0,location=0"); } //page_load ListBox1.Attributes.Add("ondblclick", "javascript:display();");
Last edited by peter_budo; May 11th, 2008 at 6:27 am. Reason: Keep It Organized - please use [code] tags
I take it my previous post did not help you ?
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Threads joined.
sudhakary_rao please do not multipost for same problem, continue with original post just give updated details of the problem
sudhakary_rao please do not multipost for same problem, continue with original post just give updated details of the problem
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- "Open new window" Window Size - how to change? (Web Browsers)
- can`t open more than one window of internet explorer (Web Browsers)
- IE 6 Open In New Window - Need Level 2+ support!! (Web Browsers)
- How to setup link clicking to automatically open new window in IE 5 (Web Browsers)
- Can't open more than one window at a time (Windows NT / 2000 / XP)
- IE-links won't always work and will not "open in new window" (Web Browsers)
Other Threads in the ASP.NET Forum
- Previous Thread: Copy Items from one combobox to another on Button Click
- Next Thread: visual studio tutorial
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net box browser button c# checkbox click commonfunctions confirmationcodegeneration css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose feedback fileuploader fill flash form formatdecimal forms formview google grid gridview gudi iframe iis javascript list listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols parent project radio redirect registration relationaldatabases reportemail richtextbox rotatepage save schoolproject search security select silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers






