Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can't access functions

Can't access functions

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netdatabase
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartyExodus
    wrote on last edited by
    #1

    Hello, I'm new to ASP.NET. I 've ben a C# programmer for about a year, but I'm just touching on the realms of web development. Anyhow... I'm having a problem. Everytime I try to compile and run my page, I get the following message: "CS0117: 'ASP.index_aspx' does not contain a definition for 'MyScript'" This is the code on my page: <%@ Page Language="C#" %> Test private void MyFunc(object sender, EventArgs e) { TextBox1.Text = "Test"; }

    If it helps any, I'm using Microsoft Expression Web, because I don't have anything else other than C# Express (No asp.net support) I'd appreciate any help.

    N 1 Reply Last reply
    0
    • M MartyExodus

      Hello, I'm new to ASP.NET. I 've ben a C# programmer for about a year, but I'm just touching on the realms of web development. Anyhow... I'm having a problem. Everytime I try to compile and run my page, I get the following message: "CS0117: 'ASP.index_aspx' does not contain a definition for 'MyScript'" This is the code on my page: <%@ Page Language="C#" %> Test private void MyFunc(object sender, EventArgs e) { TextBox1.Text = "Test"; }

      If it helps any, I'm using Microsoft Expression Web, because I don't have anything else other than C# Express (No asp.net support) I'd appreciate any help.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You need to add the runat=server attribute to your script tag <runat="server"</b>>> It is a better implementation to use a code behind file, htough I'm not usre if Expressions supports this. Why not use Visual Web Developer Express Edition? <div class="ForumSig"><hr>only two letters away from being an asset</div></x-turndown>

      M 1 Reply Last reply
      0
      • N Not Active

        You need to add the runat=server attribute to your script tag <runat="server"</b>>> It is a better implementation to use a code behind file, htough I'm not usre if Expressions supports this. Why not use Visual Web Developer Express Edition? <div class="ForumSig"><hr>only two letters away from being an asset</div></x-turndown>

        M Offline
        M Offline
        MartyExodus
        wrote on last edited by
        #3

        Ha ha, thanks. I feel dumb. And, Expressions "allows" codebehind, but doesn't "support" it. Now that I know there's a Visual Web Developer Express... I'm off to go find it!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups