>test.ascx
>---------
><%@ Control Language="vb" AutoEventWireup="false"
Codebehind="test.ascx.vb" >>>Inherits="intra.net.test"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"; %> <STRONG>
>       <h1>�berschrift:<%=myTitel%></h1>
></STRONG>

>test.ascx.vb
>------------
>...
>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load >End Sub

>Public myTitel As String

>Public Property Titel() As String
>    Get
>       Return myTitel
>    End Get
>    Set(ByVal Value As String)
>        myTitel = Value
>    End Set
>End Property

Hmm - ich bin mir nicht ganz sicher (und lasse mich gerne
berichtigen...) aber heisst es nicht:
<h1>�berschrift:<%# Titel %></h1> ?

So binde ich immer.

http://de.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/as
pplus/samples/webforms/DataBind/DataBind2.src

Gruss
Michael




| [aspdedotnet] als archive@jab.org subscribed
| http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.dotnetgerman.com/listen/aspDEdotnet.asp

Antwort per Email an