Code Behind vs. Code Inline

Discussion in 'ASP.NET / ASP.NET Core' started by Houston Online, Nov 15, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. <%@ page language="VB" %>

    <script runat="server">

    Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
    Label1.Text = "Hello " &amp; TextBox1.Text
    End Sub
    </script>

    <html>
    <head>
    <title>ASP.NET Inline Pages</title>
    </head>

    <form id="Form1" runat="server">
    <h1>Welcome to ASP.NET 2.0!</h1>
    Enter Your Name:</b>
    <asp:TextBox ID="TextBox1" Runat="server"/>
    <asp:Button ID="Button1" Text="Click Me" OnClick="Button1_Click" Runat="server"/>


    <asp:Label ID="Label1" Text="Hello" Runat="server" />
    </form>
    </body>
    </html>


    Sir. William Houston
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page