Development ASP.Net Tutorial

File: HelloWorld.cs
public class HelloWorld
{
    public string SayMessage()
    {
        return "Hello World!";
    }
}
File: ShowHelloWorld.aspx
<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    void Page_Load()
    {
        HelloWorld objHelloWorld = new HelloWorld();
        lblMessage.Text = objHelloWorld.SayMessage();
    }



    Show Hello World


    
    

            id="lblMessage"
        Runat="server" />