473,769 Members | 8,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.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.
Nov 7 '06 #1
4 1281
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.

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

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:29******** *************** ***********@mic rosoft.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*******@yaho o.nospammin.com wrote in message
news:29******** *************** ***********@mic rosoft.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
9008
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 programmer that you pretend to be, why don't you just write some? (And oh, void main is still not allow by the C++ standard.) Seeming as how you tried to quote the standard in an attempt to pretend you're right, I'll quote the standard to once...
5
8697
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 any browser support to the characters so denoted, in the sense defined in the Unicode standard, chapter 15? ( &zwj;, &zwnj;, &lrm;, &rlm; ) For example, does f&zwj;i ever produce an fi ligature? In my tests, the best I get is that the characters...
16
2484
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 could set that qualifier in the function call. Can that be done? #include <iostream> using std::ostream; using std::cout;
90
3882
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 missout on anything in the langauge or has C remaind similar. I intend to use Dev-C++ on the windows platform. If any one feels theres anything I should be aware of,please help me out,I feel a bit lost with all thats out there regarding this language....
5
3980
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 variable **var make it an array of pointers? I realize that 'char **var' is a pointer to a pointer of type char (I hope). And I realize that with var, var is actually a memory address (or at
2
2842
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 to it to view additional details about the selected result (a second database query is triggered). I want this second query to pop up in a new window, the way it would if I used "window.open" in javascript. I've added a function in the
3
2354
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 in advance,
11
1720
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 main problem is that I have yet to have a use for them in any of the projects. that I write. I wrote this from what I read about nodes. This is very simple program or object I wrote from what I read: public: color() : rc(0), rg(0), rb(0) {}...
0
2510
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 don't work nearly as well as they should, even for analysts and power users. The reason they haven't reached the masses is because most of the tools are so difficult to use and reveal so little
19
2407
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 to print a histogram of the lengths of words in its input. It is easy to draw the histogram with the bars horizontal; a vertical
0
10219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9998
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.