Compiler Error Message: CS1061

Discussion in 'ASP.NET 2.0' started by biladiz, Nov 14, 2008.

  1. Hello,
    >>
    >> When i add a method to my .cs files neither for a button nor texbox,
    > system gives same error for my methods.Error is :
    >>
    >> Compiler Error Message: CS1061: 'ASP.MYPAGE_aspx' does not contain
    > a definition for 'MY_METHOD' and no extension method 'MY_METHOD'
    > accepting a first argument of type 'MYPAGE_aspx' could be found (are you
    > missing a using directive or an assembly reference?)
    >>
    >> I recompiled my files a lot and i have always my methods in the system ,
    > too as :
    >>
    >> ---aspx file---
    >> <asp:TextBox ID='UserName' runat='server'
    > ontextchanged='MY_METHOD'></asp:TextBox>
    >>
    >> ---cs file---
    >> protected void MY_METHOD(object sender, EventArgs e)
    >> {
    >> }
    >>website :
    >>http://www.hamurcu.biz/WebApplication5
    >>
    >> And these same methods works correct on my
    > localhost,but by server don`t work.
    >>
    >> Any idea ???
     
  2. Not sure! I have just copied the code to the ftpServer.There is WebApplication.csproj_deploy, too.
     
  3. Onur,
    How are you uploading the site to the server? I'm guessing you are compiling it on the fly using the Published method?

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page