Posted By


dreamlusion on 08/24/08

Tagged


Statistics


Viewed 506 times
Favorited by 0 user(s)

ASP.NET Hello World!


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <%@ Page Language="C#" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <script runat="server">
  6. protected override void OnLoad(EventArgs e)
  7. {
  8. base.OnLoad(e);
  9. Label1.Text = "Hello World!";
  10. }
  11. </script>
  12.  
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head runat="server">
  15. <title></title>
  16. </head>
  17. <body>
  18. <form id="form1" runat="server">
  19. <div>
  20. <asp:Label ID="Label1" runat="server"></asp:Label>
  21. </div>
  22. </form>
  23. </body>
  24. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.