"Public Shared" equivalent in VB & Global
-
I have a set of XML files that I parse & put into a dropdown list. I don't want to read this set of files off the network every time the page loads. I was considering establishing a data set in the GLOBAL.ASAX file in the Session section. I would just bind that dataset on the page load for this one dropdown where it occurs in the application. NOW, I know I will hear some "purist" objections to using anything that sounds like a global variable, but it seems far more efficient than reading 100+ XML files every time the page loads for every user. I have tried creating a dataset in the Session_Start, but it isn't clear how I would access it. Any thoughts? Also, I am curios if there is an equivalent to a variable declared on a page in VB "Public Shared MyInt As Integer"? Thanks. SD
-
I have a set of XML files that I parse & put into a dropdown list. I don't want to read this set of files off the network every time the page loads. I was considering establishing a data set in the GLOBAL.ASAX file in the Session section. I would just bind that dataset on the page load for this one dropdown where it occurs in the application. NOW, I know I will hear some "purist" objections to using anything that sounds like a global variable, but it seems far more efficient than reading 100+ XML files every time the page loads for every user. I have tried creating a dataset in the Session_Start, but it isn't clear how I would access it. Any thoughts? Also, I am curios if there is an equivalent to a variable declared on a page in VB "Public Shared MyInt As Integer"? Thanks. SD
I found the answer to my tranlation question. There is a nice site that does translations back and forth between VB & C#: http://www.carlosag.net/Tools/CodeTranslator/Default.aspx; however, I would still be interested in any response to my GLOBAL question. Thanks again, Sd
-
I have a set of XML files that I parse & put into a dropdown list. I don't want to read this set of files off the network every time the page loads. I was considering establishing a data set in the GLOBAL.ASAX file in the Session section. I would just bind that dataset on the page load for this one dropdown where it occurs in the application. NOW, I know I will hear some "purist" objections to using anything that sounds like a global variable, but it seems far more efficient than reading 100+ XML files every time the page loads for every user. I have tried creating a dataset in the Session_Start, but it isn't clear how I would access it. Any thoughts? Also, I am curios if there is an equivalent to a variable declared on a page in VB "Public Shared MyInt As Integer"? Thanks. SD