Results 1 to 2 of 2

Thread: using notepad

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Location
    Malaysia
    Posts
    124

    using notepad

    Code:
    <% @ Page Language = "VB" %>
    
    <script runat="server">
    	sub Page_Load(obj as object, e as eventargs)
    		lblMessage.text = "Welcome to ASP.NET!";
    	end sub
    </script>
    
    <html><body>
    	<asp: Label id = "lblMessage" runat="server"/>
    </body></html>
    I opened notepad and type in above code, but browser shown me nothing. Am I miss something?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    This is in C#, but you can get the idea from it.
    Code:
    <%@ Page language="c#" %>
    <HTML>
    <HEAD>
    <TITLE></TITLE>
      <script language="C#" runat="server">
          private void Page_Load(object sender, System.EventArgs e)
          {
              lblMessage.Text = "Welcome to ASP.NET!";
          }
      </script>
    </HEAD>
    <BODY>
         <asp:Label id="lblMessage" runat="server" />
    </BODY>
    </HTML>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width