<%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="Default_aspx" %>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<script runat="server">

    void send_Greeting(Object sender, EventArgs e)

    {

        Greet.Text = Msg.Text;

    }

 </script>

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title>Hello World</title>

</head>

<body>

    <form id="form1" runat="server">

    <h1> Traditional Message to the world </h1>

    <div>

        <asp:TextBox  runat="server" ID="Msg" text="Hello, World"/>

        <asp:Button  runat="server" ID="Greet" Text="Greet"  OnClick="send_Greeting"/></div>

    </form>

</body>

</html>