snobrdinrtiste
Programmer
Hi everyone,
I'm a NooB to the ASP.NET world...
I looked all over but to no avail...
but my problem is this that i have an asp:listbox that when i select an item and then click on a asp:imagebutton, it will pass the selectedItem's value to a javascript function...
can someone help me?
here's something along of what i'm trying to accomplish:
this is my javascript;
function showItemSelected(theValue) {
window.alert(theValue);
}
<asp:Listbox id="listCD" runat="server"></asp:Listbox>
<asp:ImageButton id="imgBtnCD" runat="server" ImageUrl="Images/submit.gif"></asp:ImageButton>
I'm a NooB to the ASP.NET world...
I looked all over but to no avail...
but my problem is this that i have an asp:listbox that when i select an item and then click on a asp:imagebutton, it will pass the selectedItem's value to a javascript function...
can someone help me?
here's something along of what i'm trying to accomplish:
this is my javascript;
function showItemSelected(theValue) {
window.alert(theValue);
}
<asp:Listbox id="listCD" runat="server"></asp:Listbox>
<asp:ImageButton id="imgBtnCD" runat="server" ImageUrl="Images/submit.gif"></asp:ImageButton>