B
Ben Dewey
Everyone,
I am building a new ASP.NET App in 2.0. First off I love it, I can develop
things much quicker. One issue that I has been frustrating me alot is the
fact that I can't access the codebehind from other pages.
If I go to the object browser for my site the only objects are the ones that
I created in the App_Code Directory. I found a few work arounds before but
I can't seem to find one for my current issue.
I have a UserControl called ArticleTocControl.ascx, with a codebehind of
ArticleTocControl.ascx.cs, which loads the table of contents for a CNN type
atricle. I need to programmatically add create
ArticleTocControl toc = new ArticleTocControl();
Controls.Add(toc);
the problem is that I can't access the ArticleTocControl object.
Is there some kind of namespace tag, or <@ precompiler tag I can put on to
make the codebehind an accessable object?
I am building a new ASP.NET App in 2.0. First off I love it, I can develop
things much quicker. One issue that I has been frustrating me alot is the
fact that I can't access the codebehind from other pages.
If I go to the object browser for my site the only objects are the ones that
I created in the App_Code Directory. I found a few work arounds before but
I can't seem to find one for my current issue.
I have a UserControl called ArticleTocControl.ascx, with a codebehind of
ArticleTocControl.ascx.cs, which loads the table of contents for a CNN type
atricle. I need to programmatically add create
ArticleTocControl toc = new ArticleTocControl();
Controls.Add(toc);
the problem is that I can't access the ArticleTocControl object.
Is there some kind of namespace tag, or <@ precompiler tag I can put on to
make the codebehind an accessable object?