473,395 Members | 1,442 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.

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 1268

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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...
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...

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.