populate listbox using Javascript
From: RA (rchaudhary-nospam_at_storis.com)
Date: 11/12/04
- Next message: John Timney \(ASP.NET MVP\): "Re: Where do we b!tch about ASP.NET 2.0?"
- Previous message: Kevin Spencer: "Re: Doubt : ASP.NET problem"
- Next in thread: bruce barker: "Re: populate listbox using Javascript"
- Reply: bruce barker: "Re: populate listbox using Javascript"
- Reply: Kumar Reddi: "Re: populate listbox using Javascript"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Nov 2004 16:16:48 -0500
I tried following :
document.getElementById("lsTest").Items.Add(new ListItem("Test"))
This gives following error message:
'document.getElementById(...).Items' is null or not an object
Also tried:
document.getElementById("lsTest").Add(new ListItem("Test"))
Result - Error Message:
'listitem' is undefined
Any idea?
- Next message: John Timney \(ASP.NET MVP\): "Re: Where do we b!tch about ASP.NET 2.0?"
- Previous message: Kevin Spencer: "Re: Doubt : ASP.NET problem"
- Next in thread: bruce barker: "Re: populate listbox using Javascript"
- Reply: bruce barker: "Re: populate listbox using Javascript"
- Reply: Kumar Reddi: "Re: populate listbox using Javascript"
- Messages sorted by: [ date ] [ thread ]