ASP.NET Hello World

ASP.NET Hello World  ทดสอบการทำงานของ Web Server และ .NET Framework ด้วยการแสดงคำว่า Hello World  C# ครับ

<%@ Page Language="C#" %>
<script runat="server">
public void Page_Load(object sender, EventArgs e)
{  
     lblText.Text = "Hello World";
}
</script>
<html>
<head>
    <title>ASP.NET Hello World</title>
</head>
<body>
<form id="formHello" runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>

VB ครับ

<%@ Page Language="VB" %>
<script runat="server">
    Sub Page_Load(sender As Object, e As EventArgs)

 lblText.Text = "Hello World"

End Sub
</script>
<html>
<head>
    <title>ASP.NET Hello World</title>
</head>
<body>
<form id="formHello" runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>


ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

Simple markers Google Map API with C# .Net

DropDown List Background Color C# ASP.NET

Screen Sharing/Remote Control using MirrorOp:Android-PC