468,290 Members | 2,028 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

Learning & a little confused.

GW
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.
Nov 7 '06 #1
4 1152
On 2006-11-07 16:41:42 -0600, "GW" <gw@gw.vomsaid:
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.

Nov 7 '06 #2
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:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"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.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.
Nov 8 '06 #3
GW

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:29**********************************@microsof t.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.
Nov 8 '06 #4
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:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"GW" wrote:
>
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:29**********************************@microsof t.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.
Nov 8 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

192 posts views Thread by Kwan Ting | last post: by
16 posts views Thread by Steven T. Hatton | last post: by
90 posts views Thread by Jhon smith | last post: by
5 posts views Thread by jab3 | last post: by
3 posts views Thread by Michael | last post: by
11 posts views Thread by JoeC | last post: by
reply views Thread by YellowFin Announcements | last post: by
19 posts views Thread by arnuld | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.