473,545 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

double click on a listbox...

I've got a button (server side) next to a list box (server side)... is it
possible, that on a double click on the listbox, and event can cause a
button click simulation?

I've manually inserted the OnDblClick attribute into the asp:Listbox tag and
this does appear to fire, but I can't get it to call my server side code...

If I try to call a public function in the code-behind,
'OnDblClick="In sertSelectedFil es()"' it says that an object is expected when
the listbox is double clicked...

so i surrounded the call in <%= %> and it then fails on load saying that
Server tags cannot contain <% ... %> constructs.

any input on this?

Thanks for your time.

Daniel.
Nov 18 '05 #1
0 1393

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1758
by: Blacky | last post by:
Hi I have a small form with a listbox. When double clicking on an item, the item is added to another form and then the form is closed. But this creates an exception error saying that the ListBox does not excist. How do I fix this? Thank You
0
1457
by: SirThanxALot | last post by:
Dear all, This is the situation: I have a custom subclass of ListBox - OnDrawItem overriden - OnSelectedIndexChanged overriden - DrawMode.OwnerDrawFixed (same issue with OwnerDrawVariable) However, when I activate double buffering with SetStyle(COntrolStyles.AllPaintingInWmPaint|ControlStyles.UserPaint|ControlStyles.DoubleBuffer,true)...
5
3046
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find out why it quit working. I found that if I didn't have a linkbutton, it quit working????????? If I changed the linkbutton to a regular button,...
2
1410
by: active | last post by:
I've been working on a problem for a few days now. I do not get a Double-Click event fired for a ListView when I double click. I now find that if I double click with the right button it works OK. It just occurred to me that I do have a MouseMove event that starts a Drag for the left button if the mouse moves. But I'm not moving the...
1
1788
by: active | last post by:
I've been working on a problem for a few days now. I do not get a Double-Click event fired for a ListView when I double click. I now find that if I double click with the right button it works OK. It just occurred to me that I do have a MouseMove event that starts a Drag for the left button if the mouse moves. But I'm not moving the...
1
2283
by: Rahul Vaghela | last post by:
I have two list boxes, 1 with a list of products and another that is empty.. I would like to double click on the products in the first list box and fill the empty listbox with the items that get doubleclicked. Ultimately I would like a report based on the list of items newly entered into the previosuly empty listbox
4
4741
by: Jeff User | last post by:
Hi Using .NET 1.1, C#, web app I (actually our client) would like to be able to double click a selection in a listbox and have it postback to server . There I would want to access the item that was double clicked. Any idea how to go about this? Thanks
6
9578
patjones
by: patjones | last post by:
Sometimes you might have two list boxes side by side, and want to double-click on an item in one box to move it to the other. For instance, maybe the first list box contains a list of customers, and you want to perform some function (say, email them) that pertains to only a few of those customers. By double-clicking on the customer names you...
2
7696
by: svibuk | last post by:
i have a asp.net list box populated with databae data , autopostback = true wht i need is 1) when double clicked(double click event) i want it to be visible=false 2)i want to move between the data in the listbox using up, down arrow keys & make the selection by pressing eneter(keypress event) 3) everytime i move betwen the data(autopostback...
0
7425
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...
0
7682
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. ...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5069
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...
0
3479
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...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
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
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.