aspx_professional thread: asp:listbox with clientside (javascript) event handling
In C#:
words.Attributes.Add("onchange", "callMyJscript()");
-----Original Message-----
From: clemens.wyss@h... [mailto:clemens.wyss@h...]
Sent: 21. november 2002 02:40
To: ASPX_Professional
Subject: [aspx_professional] asp:listbox with clientside (javascript)
event handling
Hi all,
this is kind of a general question on how to combine a (severside) asp-
webcontrol with clientside event handling.
I have an <asp:listbox/> (which I fill in on the serverside) and I want
to call a javascript on the clientside(i.e. browser) whenever the
selection is changed.
In plain html I would type:
<SELECT NAME=3D"words" SIZE=3D"4" ONCHANGE=3D"callMyJscript()">
...
How can I achieve this combination?
Regards
Clemens