As Marina and Brock have answered, yes you can...it's merely an
accessibility issue. The point of my reply is to ask why you want to?
There are certainly cases where you have to, but as a general rule I'd say
it's good to avoid this if possible.
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Adam Knight" <de*@brightidea.com.au> wrote in message
news:uN**************@tk2msftngp13.phx.gbl...
Hi,
Can I use variables declared in a code behind file in a .aspx file?
If so, what needs to be done to make these variables available?
If I am using a .ascx file instead of an .aspx, does this have any impact?
Responses are appreciated.
Cheers,
Adam