Re: Class casting.
- From: Kris <witek7205@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 11:32:18 -0600
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,
What if you use the complete name of A:
((your_web_app_namespace.A) this.Page)).AA();
No, it does't work.
I found some articles in the Internet that this is a problem with ASP.NET 2.0 because of partial classes.
http://west-wind.com/weblog/posts/3016.aspx
http://odetocode.com/Blogs/scott/archive/2005/09/12/2186.aspx
They show how to solve it between two peges, from page to control, but not from control to page.
<%@ Reference also doesn't solve the problem, because I get circular reference
Page registers control, control references to page...
I am still looking for.
.
- Follow-Ups:
- Re: Class casting.
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Class casting.
- References:
- Class casting.
- From: Kris
- Re: Class casting.
- From: Ignacio Machin \( .NET/ C# MVP \)
- Class casting.
- Prev by Date: Re: why does IndexOf still return -1
- Next by Date: Re: What is a "Predicate delegate"
- Previous by thread: Re: Class casting.
- Next by thread: Re: Class casting.
- Index(es):
Relevant Pages
|