Re: Class casting.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.





.



Relevant Pages

  • RE: Built in function errors.
    ... located on other tabs in a tab control. ... I had to find a way to use the reference. ... TLBs on the client computer. ... reselect libraries simply makes the application not worth building using ...
    (microsoft.public.access.modulesdaovba)
  • Re: Reference forms and fields with variables
    ... There are so many ambiguities here, that it may not really help to follow ... If Field2 is a field in the underlying recordset, ... but the reference is unstable. ... LinkChildFields property of a subform is NOT represented by a control in the ...
    (microsoft.public.access.formscoding)
  • RE: f7s4r4v
    ... speaking this is a reference to the current instance of the class, ... Similarly any references to a control on the form simply by the ... Private Sub Form_AfterUpdate ... intSecond As Integer) ...
    (microsoft.public.access.gettingstarted)
  • Re: Referencing problem
    ... Re:> Activecontrol does not return the correct reference for controls ... Dim ctlSpell As Control ... If TypeOf ctlSpell Is TextBox Then ... If the tab is on a subform, ...
    (comp.databases.ms-access)
  • RE: ObjectDataSource in ASP.NET 2.0
    ... For datasourcecontrol and databindig control, ... it don't quite makesense to maintain such a in-memory reference. ... again from orginal datasource, e.g: ... | Customer customer = new Customer; ...
    (microsoft.public.dotnet.framework.aspnet)