Client Side scripting

0-Raiser

New Member
Often times I have a mix of server controls and navigation buttons. For instance, I have a listbox to choose an item, then a button next to it which will launch a window to see more information on that item. The listbox is databound. Anyway, the problem is that in order to get the index of the selected item, I need to do something like "form1.listbox.option()". However when the page is rendered and sent to the client, .NET makes up it's own form name since the form is set to runat=server. Anyway to force it to name the form the way I want? Or alternately to get it to rewrite my client side code to it's name?yeah.. whatever ID you use for your form is available through javascript.<BR><BR><form id="frm" runat="server"/><BR><BR>To get to it in javascript:<BR><BR>alert(docuemnt.frm)<BR><BR>that will return an [object]
 
Back
Top