I am writing a web application in VB.NET and I am stuffing an array in the VB code and need to access it from the ASPX code. I am not sure how this is done. Can anyone help?<BR><BR>Thanks<BR><BR>Adam<BR>email@example.com
I am using variables in the codebehind (the aspx.vb file) I want to be able to access those same variables that have been stuffed with data in the codebehind from the actual ASPX file. When I build a webform in VB.NET I get 2 files, the ASPX file (the html) and the ASPX.VB file (codehind). I want to be able to share variables between the 2. Make sense?<BR><BR>Thanks for your help!!!<BR><BR>Adam
No, it doesn't really make sense...<BR><BR>The codebehind file is where the variables for the ASPX file are stored... There are accessible to the webform (they are part of the web form) by default...<BR><BR>or am I missing the point?
Where are you creating the variable, and how are you declaring it?<BR><BR>If you create it / declare it inside a sub or Function, then it will be private to that sub/function, so you won't be able to access it... <BR><BR>Post the code (the whole sub) as well as your array declaration.<BR><BR>I'll show you how to fix it..<BR><BR>HTH<BR>D.