Listbox javascript selectindex

hi every one,

Can someone help me with Javascript codes?  I have a databound listbox. I would like to do a javascript so that when user click on an item, it will pass that item value to a gridview.  I don't want to do Autopostback with my listbox because it create problem with my Listsearch_Extender

Thank you so much
*** added .NET and pushed the request attention link *** mplungjan, ee ZAPE

Open in new window

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

luubiConnect With a Mentor Author Commented:
can someone help me with this?
Do you mean something like this:

<asp:ListBox ID="ListBox1" runat="server" >
Add a javascript function
 function Selection()
Then in code behind ,  
ListBox1.Attributes.Add("onchange", "Selection(this);");

Open in new window

but I don't know what you mean by "pass that item value to a gridview"
luubiAuthor Commented:
I have a listbox databound listing of all the Project #.  Then, when a user click on the Project #, it will pass the value to a gridview to view all the tasks available for that Project.

I would like to do this with JS script instead of Auto Postback because when I turn on AutoPostback for listbox, my listsearch_extender does not work

All Courses

From novice to tech pro — start learning today.