Hi everyone,
Where would you declare variables and collections that will be used across different subs. I'd like make them public. Would I just declare them inside my <script> tag ahead of any subs? I was messing with a hashtable and needed to declare it outside of any sub to preserve scope, but I had to add its keys/values while in a sub.
Also, how can I display a variable in a page in the html itself. Can we use the asp <% = foo %> syntax anymore?
I'm taking a class on asp.net but the teacher hasn't mentioned any of the basics yet. I am one who thinks basics are important.
Mike
Where would you declare variables and collections that will be used across different subs. I'd like make them public. Would I just declare them inside my <script> tag ahead of any subs? I was messing with a hashtable and needed to declare it outside of any sub to preserve scope, but I had to add its keys/values while in a sub.
Also, how can I display a variable in a page in the html itself. Can we use the asp <% = foo %> syntax anymore?
I'm taking a class on asp.net but the teacher hasn't mentioned any of the basics yet. I am one who thinks basics are important.
Mike