J
jhcorey
This is an ASP.NET 2.0 question.
In 1.0, common techniques for communicating between a page and the
controls on it
depended on being able to declare variables of the page and control
types.
For example, if I had a page called MyPage.aspx, then I could declare a
variable
of type MyPage in my user control code. Typically I would have a
namespace with the same name as my project.
I don't know how to do this in 2.0. It seems to have something to do
with the page and user control classes being partial classes -- I can
declare variables
of any 'normal' classes in the project.
No doubt there's a simple solution.
In 1.0, common techniques for communicating between a page and the
controls on it
depended on being able to declare variables of the page and control
types.
For example, if I had a page called MyPage.aspx, then I could declare a
variable
of type MyPage in my user control code. Typically I would have a
namespace with the same name as my project.
I don't know how to do this in 2.0. It seems to have something to do
with the page and user control classes being partial classes -- I can
declare variables
of any 'normal' classes in the project.
No doubt there's a simple solution.