I may be in the wrong forum for this question, but due to my lack of
understanding of jscript, I don't know where else to post it. ;)
I was attempting to do something in javascript, and now I'm trying
jscript and I must just be missing something obvious because I know it
can't be this difficult.
I have an ASP.net project using vb.net. It has a listbox control and a
button. All I want to do is know how to cycle through all the selected
items on the listbox in some javascript/jscript/whatever on the client
side. The problem I'm having is that since my listbox is an asp control,
I don't see it in the javascript side (i.e. when I do document.form1. I
don't see listBox).
How do you do this? Moreover, is there a good resource that explains how
you integrate javascript/jscript into asp.net applications? I'm having a
hell of a time finding anything on it in the docs. It seems like MS
assumes that once you use .net you'll not need or want to do any
client-side scripting. :-/
Thanks!
Zach
Jim M - 17 Apr 2004 03:40 GMT
contact_count = document.getElementById("dropContacts").length
for (var i=0;i<contact_count;i++) {
document.getElementById("dropHTMLContacts").options(i).value = x
document.getElementById("dropHTMLContacts").options(i).text = y
}
> I may be in the wrong forum for this question, but due to my lack of
> understanding of jscript, I don't know where else to post it. ;)
[quoted text clipped - 18 lines]
> Thanks!
> Zach