Hello everybody,

I need to use my server controls in javascript for client-side validation etc.

I have a listbox control.

<asp:listbox id=groupsListBox runat="server" Width="256px" OnSelectedIndexChanged="javascript:SetTextBox();"></asp:listbox>

As user selects a value, I need to display this value in the TextBox just below the listbox. I wrote the code in SetTextBox() but this function does not execute.

Thanks.