CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Location
    Torture chamber
    Posts
    132

    why <script> doesn't work in VS.NET 2003?

    Code:
    <script Language="c#" Runat="server">
        void Page_Load()
        {
            Message.Text="hello world";
        }
    </script>
    Code:
    <asp:Label Runat="server" ID="Message"/>
    This doesn't work, instead I gotta use the code behind .cs file to define my events... may I be enlightened what actually went wrong?
    Thanks...
    end------------------------------
    Programmers aren't born, but are made from hardwork, effort and time.
    To be a good one, requires more effort and hardwork.
    Therefore N quality programmer = (N*hardwork)+(N*effort)+(N*time)

  2. #2
    Join Date
    Jul 2003
    Location
    Singapore
    Posts
    1,822
    i think u gotta use Web Matrix in order to use the script tags..
    R. Thomas
    "Be anxious for nothing, but in everything by prayer and supplication, with thanksgiving, let your requests be made know to God; and the peace of God, which surpasses all understanding, will guard your hearts and minds through Christ Jesus."Philippians 4:6-7
    "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

  3. #3
    Join Date
    Dec 2002
    Location
    Birmingham, AL
    Posts
    82
    You should use Code Behind in VS.NET 2003.

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

Featured