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

The simplest ASPX page deployment

I used a text editor to create a aspx file and its code-behind c# file, then
I put these two files in the ...inetpub\wwwroot\test folder. When I tested
it, the result was that the code-behind is ignored.

When I used Visual Studio to do the same, the result was correct. Please
advise.
Peter
Nov 19 '05 #1
3 1113
Peter,

The code needs to be compiled and the resulting .dll file needs to be in the
bin folder of the website (you also need the .aspx page with the display
code in it). The codebehind file isn't used in a deployed site.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I used a text editor to create a aspx file and its code-behind c# file,
then
I put these two files in the ...inetpub\wwwroot\test folder. When I tested
it, the result was that the code-behind is ignored.

When I used Visual Studio to do the same, the result was correct. Please
advise.
Peter

Nov 19 '05 #2
I havent tried this. But I believe you will need to compile the C# code
behind using csc.exe before deployment..
"Peter" wrote:
I used a text editor to create a aspx file and its code-behind c# file, then
I put these two files in the ...inetpub\wwwroot\test folder. When I tested
it, the result was that the code-behind is ignored.

When I used Visual Studio to do the same, the result was correct. Please
advise.
Peter

Nov 19 '05 #3
It's all a matter of the model you use. You can use a page without a
CodeBehind, a page with a compiled CodeBehind (in a DLL in the \bin folder),
or a page with a non-compiled CodeBehind. Visual Studio uses the compiled
CodeBehind model by default. To use a non-compiled CodeBehinid, you have to
change the @Page directive, add a "src" attribute which specifies the
location of the CodeBehind file. The "CodeBehind" attribute is used only at
compile-time, and does not come into play at run-time. If you put the class
execution in a Code Block in the page, and don't use a separate CodeBehind
file, you don't need the "src" attribute.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I used a text editor to create a aspx file and its code-behind c# file,
then
I put these two files in the ...inetpub\wwwroot\test folder. When I tested
it, the result was that the code-behind is ignored.

When I used Visual Studio to do the same, the result was correct. Please
advise.
Peter

Nov 19 '05 #4

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

Similar topics

4
by: Larry Brindise | last post by:
I have an asp.net application. I have used VStudio Web Deployment Project to create the MSI file. I copy the MSI file from my developer PC to my test server running Win2003Server Web Edition. I...
0
by: willem joubert | last post by:
I got the following message from Microsoft Web Hosting Customer Support ===================================================== The only file that we see located within the /web directory of your...
18
by: Boris Yeltsin | last post by:
I'm using a Web Deployment Project under Visual Studio 2005. What I would love to be able to deploy to a fresh server is just the \bin folder and the web.config (and perhaps a couple of other...
2
by: john sun | last post by:
Hi, Dear gurus, In the web deployment project, there is one option called "Output Assemblies page". The first choice is "Merge all outputs to a single assembly", According to MSDN, "Merges...
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...
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...
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.