<%@ Page Language="VB" %>

<%@ Register Assembly="Chapter25ControlsVB, Version=1.0.3526.27784, Culture=neutral, PublicKeyToken=null"
    Namespace="Chapter25ControlsVB.ServerControl.VB" TagPrefix="cc1" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Me.TemplatedControl1.DataBind()
    End Sub
</script>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Szablonowe kontrolki WWW</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <cc1:TemplatedControl Name="Jan Kowalski" Text="Witaj, kolego!" 
            ID="TemplatedControl1" runat="server" Height="33px" Width="377px">
            <MessageTemplate>Użytkownik '<%# Container.Name %>' 
                ma dla Ciebie wiadomość: <br />"<%#Container.Text%>"
            </MessageTemplate>

        </cc1:TemplatedControl>
    </div>
    </form>
</body>
</html>
