473,395 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1263
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.