Learning & a little confused.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GW

    #1

    Learning & a little confused.

    Hello,

    I started to study c# .net today, coming from a background of classic ASP
    VBScript.
    I am having an issue with one of my beginner projects, a real simple one
    too.

    I have three files:

    index.aspx
    formControl.asc x - has a form with a few fields
    captureData.cs - this file contains the logic which stores the form data in
    a database

    Before I used the ASCX file to hide the form layout code behind the scenes,
    all worked fine. However, as soon as I moved the form to the ASCX file, my
    application was not able to access the onClick behaviour, the exact error:

    Compiler Error Message:
    BC30456: 'Button_Click' is not a member of 'ASP.formContro l_ascx'.

    I am not using VS.net and I am not compiling the code, just notepad at the
    moment. I want to try and use the ASCX file as this form will be shared
    across multiple places, and having one piece of code to deal with is much
    easier.

    Thanks in advance for any help or guidance offered.

    Gary.


  • Bob Jones

    #2
    Re: Learning & a little confused.

    On 2006-11-07 16:41:42 -0600, "GW" <gw@gw.vomsai d:
    Hello,
    >
    I started to study c# .net today, coming from a background of classic
    ASP VBScript.
    I am having an issue with one of my beginner projects, a real simple one too.
    >
    I have three files:
    >
    index.aspx
    formControl.asc x - has a form with a few fields
    captureData.cs - this file contains the logic which stores the form
    data in a database
    >
    Before I used the ASCX file to hide the form layout code behind the
    scenes, all worked fine. However, as soon as I moved the form to the
    ASCX file, my application was not able to access the onClick behaviour,
    the exact error:
    >
    Compiler Error Message:
    BC30456: 'Button_Click' is not a member of 'ASP.formContro l_ascx'.
    >
    I am not using VS.net and I am not compiling the code, just notepad at
    the moment. I want to try and use the ASCX file as this form will be
    shared across multiple places, and having one piece of code to deal
    with is much easier.
    >
    Thanks in advance for any help or guidance offered.
    >
    Gary.

    Comment

    • Peter Bromberg [C# MVP]

      #3
      RE: Learning &amp; a little confused.

      GW,
      this is not a C# language group question. Try posting it at the ASP.NET group:

      http://msdn.microsoft.com/newsgroups...k.aspnet&fltr=
      Peter
      --
      Co-founder, Eggheadcafe.com developer portal:

      UnBlog:





      "GW" wrote:
      Hello,
      >
      I started to study c# .net today, coming from a background of classic ASP
      VBScript.
      I am having an issue with one of my beginner projects, a real simple one
      too.
      >
      I have three files:
      >
      index.aspx
      formControl.asc x - has a form with a few fields
      captureData.cs - this file contains the logic which stores the form data in
      a database
      >
      Before I used the ASCX file to hide the form layout code behind the scenes,
      all worked fine. However, as soon as I moved the form to the ASCX file, my
      application was not able to access the onClick behaviour, the exact error:
      >
      Compiler Error Message:
      BC30456: 'Button_Click' is not a member of 'ASP.formContro l_ascx'.
      >
      I am not using VS.net and I am not compiling the code, just notepad at the
      moment. I want to try and use the ASCX file as this form will be shared
      across multiple places, and having one piece of code to deal with is much
      easier.
      >
      Thanks in advance for any help or guidance offered.
      >
      Gary.
      >
      >
      >

      Comment

      • GW

        #4
        Re: Learning &amp; a little confused.


        "Peter Bromberg [C# MVP]" <pbromberg@yaho o.nospammin.com wrote in message
        news:293CCFD8-C0D9-48F9-870C-03289430FEF8@mi crosoft.com...
        GW,
        this is not a C# language group question. Try posting it at the ASP.NET
        group:
        >
        http://msdn.microsoft.com/newsgroups...k.aspnet&fltr=
        Peter

        No worries, apologies.
        Does this group deal mainly with non web related c# programming?

        Gary.


        Comment

        • Peter Bromberg [C# MVP]

          #5
          Re: Learning &amp; a little confused.

          The ASP.NET group deals with ASP.NET issues regardless of programming
          language choice. This group is c# language specific.
          --
          Co-founder, Eggheadcafe.com developer portal:

          UnBlog:





          "GW" wrote:
          >
          "Peter Bromberg [C# MVP]" <pbromberg@yaho o.nospammin.com wrote in message
          news:293CCFD8-C0D9-48F9-870C-03289430FEF8@mi crosoft.com...
          GW,
          this is not a C# language group question. Try posting it at the ASP.NET
          group:

          http://msdn.microsoft.com/newsgroups...k.aspnet&fltr=
          Peter
          >
          >
          No worries, apologies.
          Does this group deal mainly with non web related c# programming?
          >
          Gary.
          >
          >
          >

          Comment

          Working...