Posted By

dreamlusion on 08/24/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


ASP.NET Hello World!


 / Published in: C#
 

  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  

You need to login to post a comment.