473,386 Members | 1,799 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,386 software developers and data experts.

some controls not defined in code behind file?

I'm using VWD to create a form. In the code behind submit button event method
I'm trying to reference text fields to send an email from a contact us form.

I can reference some of my TextBoxes but for some I get the following error:

Error 'contactPage' does not contain a definition for 'EmailTextBox'
(as in public partial class contactPage : System.Web.UI.Page)

I'm referencing the control like this:

this.EmailTextBox.Text (oddly enough the intellisense prompted me
through this)

the following reference to another control works:

this.NameTextBox.Text

I'm really puzzled by this. Is this a bug in ASP.NET 2.0? I noticed VWD
doesn't declare amd initialize these controls in the code behind class the
way VS 2003 does with ASP.NET 1.1

Any suggestions would be appreciated!

Thanks
Feb 7 '06 #1
1 959
figured it out, I had a backup of my aspx page under a different name with
the same inherit class name but had changed the case of the variables to
there was really a name conflict. boy did I spin my wheels on this one. Would
be nice if VWD supported SVN ;)

"Dabbler" wrote:
I'm using VWD to create a form. In the code behind submit button event method
I'm trying to reference text fields to send an email from a contact us form.

I can reference some of my TextBoxes but for some I get the following error:

Error 'contactPage' does not contain a definition for 'EmailTextBox'
(as in public partial class contactPage : System.Web.UI.Page)

I'm referencing the control like this:

this.EmailTextBox.Text (oddly enough the intellisense prompted me
through this)

the following reference to another control works:

this.NameTextBox.Text

I'm really puzzled by this. Is this a bug in ASP.NET 2.0? I noticed VWD
doesn't declare amd initialize these controls in the code behind class the
way VS 2003 does with ASP.NET 1.1

Any suggestions would be appreciated!

Thanks

Feb 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
Hi Guys, I am generating dynamic server controls using XML and XSLT. With this I am generating two buttons which when clicked redirect the page to a different page. Here is my "checkout"...
9
by: Frank Rizzo | last post by:
I've got a number of user controls on the web page. How can I pass some data to it? I don't see where the user control is instantiated in the page code-behind page. Thanks.
2
by: Brandon Potter | last post by:
Why is it that when I override the OnInit method for a page, I can add a user control like this: Me.Controls.Add(LoadControl("MyControl.ascx")) (where MyControl.ascx is your every day user...
3
by: David Freeman | last post by:
Hi There! I'm having trouble dynamically adding custom controls. My custom controls does not use code-behind but only <script /> block for programming. So as a result, I don't need to compile my...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
4
by: Willy | last post by:
Hi All! I'm using Code-behind model for my ASP.NET pages. But to skip the compilation step, I reference my code-behind pages as follows... <%@ Page Language="VB" Debug="true"...
7
by: Alan Silver | last post by:
Hello, I am just looking at VWD and seeing what needs doing to take an existing site I've written by hand and importing it into VWD. I've already discovered that I need to rename my code-behind...
9
by: Alan Silver | last post by:
Hello, I have a user control which I am trying to load dynamically, but am running into problems. I think the problem is because I have two .ascx files that refer to the same .ascx.cs file. A...
4
by: Casper | last post by:
Hi, i know how to use datareader in code-behind, e.g. like this: Dim oConnection As OleDbConnection Dim comd As OleDbCommand Dim dtreader As OleDbDataReader oConnection = New...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.