It sounds like you're migrating from ASP to ASP.Net, in that your thinking
procedurally rather than object-orieted. In ASP.Net it is more useful to
think about objects and classes than files. A Page is a class. A User
Control is a class. Therefore, you would not "pass" data from one class to
the other. You set properties. Now, you can also call Methods in a class,
and pass them data. So, you have 2 choices: (1) Set a property, and (2) Call
a method.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"DotNet" <as*****@hotmail.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
I'm trying to construct a header user control and would like to pass an
integer to the control in order to display the correct on state for a
menu. How does one pass an integer from an .aspx page to an .ascx page when the
page loads?
Thanks.