Hi
i am having listbox,i want to open a new window after doubleclick of particular item in listbox in asp.net
sudhakary_rao
0
Newbie Poster
Recommended Answers
Jump to PostHi,
I may 've a solution for you. You can check it out.
You need to work on ItemDatabound event, in that add attribute onDoubleClick to each of liste items & call some javascript function to open a pop up.Wish this help you....
Jump to PostHi there, you can try this:
MyListbox.Attributes["onclick"] = "window.open(...);"
or...
<asp: listbox ID="MyListBox" runat="server" OnClientClick="window.open(...);" />
hope that helps you.
Here is a very useful site:
http://www.gridviewguy.com/ArticleDetails.aspx?articleID=36_Asp.net_Frequently_asked_Questions
All 8 Replies
ardeezstyle
0
Light Poster
majestic0110
187
Nearly a Posting Virtuoso
majestic0110
187
Nearly a Posting Virtuoso
sudhakary_rao
0
Newbie Poster
majestic0110
187
Nearly a Posting Virtuoso
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
sudhakary_rao
0
Newbie Poster
majestic0110
187
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.