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.ascx - 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.formControl_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.