•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 363,396 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,958 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 807 | Replies: 8 | Solved
![]() |
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,121
Reputation:
Rep Power: 3
Solved Threads: 46
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 2:04 pm.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,121
Reputation:
Rep Power: 3
Solved Threads: 46
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: May 2008
Posts: 8
Reputation:
Rep Power: 0
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.
<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 5:27 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,121
Reputation:
Rep Power: 3
Solved Threads: 46
I take it my previous post did not help you ?
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,782
Reputation:
Rep Power: 8
Solved Threads: 185
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)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,121
Reputation:
Rep Power: 3
Solved Threads: 46
Please mark your thread as solved and post the solution so that others may benefit from it. :-)
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
age amd avatar blue gene chips database dell development dos drivers economy energy enterprise firefox graphics hardware ibm ibm. news intel intel ibm internet it linux memory microsoft mozilla news open open source open-source opengl openoffice ps3 recession red hat russia software source sun super supercomputer supercomputing system technology trends ubuntu vista windows working x86
- can`t open more than one window of internet explorer (Web Browsers)
- "Open new window" Window Size - how to change? (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 / 2003)
- 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



Linear Mode