from a code class,
a] how does one dimension a collection and then
b] after it is created, reassign it in the page ?
I'm getting only errors on line of code in the page.
"System.NullReferenceException: Object variable or With block variable not
set "
example :
------------------
function buildmenu ()
dim mymenu as ??
[...code here...]
return mymenu
end function
in the page should this work to reassign menu collection??
<Script runat="server">
mymenu = myObject.Buildmenu () '<= errors here
....
</script>
<mycontrol:menu id="mymenu" runat="server">