<%@ Page Language="C#" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<script runat="server">
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label2.Text = GetLocalResourceObject("Label2Answer").ToString() + " " + 
           TextBox1.Text;
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Przykład strony</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="Jak masz na imię?" 
         meta:resourcekey="Label1Resource1"></asp:Label><br />
        <br />
        <asp:TextBox ID="TextBox1" runat="server" 
         meta:resourcekey="TextBox1Resource1"></asp:TextBox>&nbsp;
        <asp:Button ID="Button1"
         runat="server" Text="Prześlij imię" 
         meta:resourcekey="Button1Resource1" OnClick="Button1_Click" /><br />
        <br />
        <asp:Label ID="Label2" runat="server" 
         meta:resourcekey="Label2Resource1"></asp:Label>
    </div>
    </form>
</body>
</html>
