473,405 Members | 2,185 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,405 software developers and data experts.

codebehind error

ani
When I try to open the web form page, I get a designer
error which says:
'the file could not be loaded into the web forms designer.
Please correct the following error and then try loading it
again:

The @Page or @Control directive contains a src=attribute,
which is not supported in Visual Studio.

Make sure all of the classes used in the page are built or
referenced in the project. '
How can I stop this . Also when I create a new web form
the page directive appears with the codebehind attribute
and the inherits attribute. Do I have to change them. I
also see a .aspx.vb file when the new aspx page is
created. Can I use this for codebehind. How do I
compile .aspx.vb file. I know the command, but it always
generates error. What is this aspx file and how do I use
it. Please help!

Thanks..
Nov 17 '05 #1
1 1270

The "recommended" model uses the inherited page, and NOT the "src"
attribute.

Using this attribute is not recommended, and you will get the error you are
experiencing.

The best way of developing is to leave what it inserts for you (e.g. the
codebehind= and inherits= attributes).

Develop your "codebehind" in the .aspx.vb page

When you compile your application, it will automatically compile the VB
classes for you into a single DLL. Then you don't need to deploy the VB
files, only the AS?X and DLL files.
"ani" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
When I try to open the web form page, I get a designer
error which says:
'the file could not be loaded into the web forms designer.
Please correct the following error and then try loading it
again:

The @Page or @Control directive contains a src=attribute,
which is not supported in Visual Studio.

Make sure all of the classes used in the page are built or
referenced in the project. '
How can I stop this . Also when I create a new web form
the page directive appears with the codebehind attribute
and the inherits attribute. Do I have to change them. I
also see a .aspx.vb file when the new aspx page is
created. Can I use this for codebehind. How do I
compile .aspx.vb file. I know the command, but it always
generates error. What is this aspx file and how do I use
it. Please help!

Thanks..

Nov 17 '05 #2

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

Similar topics

2
by: Graham Allwood | last post by:
I'm reading the Essential ASP.NET book by Fritz onion and he says that when VS.NET creates a new .aspx page for you is uses the codebehind attribute on the Page directive rather than the src...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
12
by: A.M | last post by:
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali
12
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes...
4
by: Mat | last post by:
Hi, I am having a bit of a problem trying to access / set properties of a usercontrol from the parent codebehind. This is what I have so far.. simple.aspx <%@ Page...
1
by: BJ-Mac Donel | last post by:
Please find the below error! This occure when i upload to server, but in my local file working really great, But if i change codebehind to src it is working well, but i also have problem with my...
0
by: N. Demos | last post by:
Hello, I have a custom usercontrol, of which I have two instances of in my aspx page. Both the usercontrol and page have codebehind. In the page codebehind, I want a member variable for each...
2
by: landers | last post by:
Hi All, I have created a vb file that inherits a System.Web.UI.Page. As I am against duplicating source code, I have set the Codebehind attribute on all my aspx pages in the same directory. ...
1
by: Randall Parker | last post by:
Using VS 2003 and Cassini web server. I'm new to ASP.Net and so this may be a dumb question. I'm getting an error where the type 'FarmLand.WebForm1' is not found. The Codebehind C# source file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.