Hallo


>wie sieht Dein Code aus? Bekommst Du Fehlermeldungen? > Ich versuche mal, das relevante rauszunehmen.

Datei vorschau.ascx
<%@ Control Language="VB" Inherits="jukebox.PagingCB" Src="vorschau.aspx.vb" %>
<%@ Register TagPrefix="jukebox" TagName="navigation" Src="../controls/navigation.ascx" %>


<jukebox:navigation runat="server" id="navigation_vorschau"></jukebox:navigation>

====================================================================================
Datei vorschau.aspx.vb
Imports ...
Imports jukebox

namespace jukebox
   Public Class PagingCB
      Inherits UserControl

Protected navigation_vorschau as NavigationCB <<= hier gibts den Fehler: Type 'jukebox.NavigationCB' is not defined
====================================================================================
Datei navigation.ascx


<%@ Control Language="VB" Inherits="jukebox.NavigationCB" Src="navigation.ascx.vb" %>
<asp:Label id="lb" runat="server">Label</asp:Label>


====================================================================================
Datei navigation.ascx.vb

Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls

namespace jukebox
   Public Class NavigationCB
   Inherits UserControl
      Protected lb As Label

       public sub text(t as string)
           lb.text=t
       end sub

====================================================================================


Ich m�chte vom CB der Vorschau-UC auf Methoden von navigation-UC zugreifen.


Ich denke, dass ich irgendwo noch ein Import falsch oder fehlend habe.

Gruss Christoph


_______________________________________________ Asp.net mailing list [EMAIL PROTECTED] http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an