472,950 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 software developers and data experts.

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 1245
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

192
by: Kwan Ting | last post by:
The_Sage, I see you've gotten yourself a twin asking for program in comp.lang.c++ . http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1 If you the oh so mighty...
5
by: Jukka K. Korpela | last post by:
The HTML specifications define the entities &zwj;, &zwnj;, &lrm;, &rlm; as denoting zero-width joiner, zero-width non-joiner, left to right mark, and right to left mark. Is there any evidence of...
16
by: Steven T. Hatton | last post by:
In the following code, the only way I can figure out to pass an array of const is by setting the template argument to const in the instanciation expression. It would be (or seem to me) better if I...
90
by: Jhon smith | last post by:
Hi all,Just wondering are there any problems with learning c from older books,as I have picked up some from 1988,1994,1997,1998. By using books of this age(Im on a tight budget)am I going to...
5
by: jab3 | last post by:
(again :)) Hello everyone. I'll ask this even at risk of being accused of not researching adequately. My question (before longer reasoning) is: How does declaring (or defining, whatever) a...
2
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
3
by: Michael | last post by:
Hi, I am a little confused about & and int &. Do they both mean reference? int a; int* b= & a ; (& here mean reference of a) int& b = a ; ( How to understand & precisely here?) Thanks...
11
by: JoeC | last post by:
I have been using C++ for several years now and I have been reading about nodes. I am a little confused. I understand many of the concepts behind this such as pointers and dynamic binding. My...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
19
by: arnuld | last post by:
this programme runs without any error but it does not do what i want it to do: ------------- PROGRAMME -------------- /* K&R2, section 1.6 Arrays; Exercise 1-13. STATEMENT: Write a program...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.