aspx.resx, aspx & asp ?

Hello experts,

   I wrote some ASP.NEt using visual studio. net. The asp page looks fine on my local host. Then I uploaded it to a asp hosting site. However, all the ASP.NET page can NOT be uploaded! I can only upload the  .aspx.resx and aspx.cs files... so that I could NOT see those pages on the internet ...
Does anyone know what was going on ??? many thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
test.aspx - the actual page that gets converted into html.
test.aspx.cs - the code behind on the page.  This is where the business logic goes.  (EG: page load, button clicks, etc.)
test.aspx.resx - resources page . . . used more for localization.

ASP is not the same as

When publishing to the web you need the following:

.aspx, .resx if using, and the .dll file from your bin/(release or debug).

The .dll goes in the bin folder below the root directory of the site, the .aspx goes should go in the root directory or any subdirectory thereof.  you should be able to access as normal.

An example:

[root of virtual directory]

Can you explain why "all the page can not be uploaded"? Sounds like an ftp problem to your host.
Hi  meow00,

1. Default.aspx - This file contain all code in html.
2. Default.aspx.cs - This file contain code behind (In Either C# or VB.NET or J# or c++ etc). It contains code of every events, methods, properties, variables of the form.
3. Default.aspx.resx - This file contains resources list which is required at the time of executing this form.

4. ASP and are not same thing. Both are working with different technical fundamental. I have describe difference between asp and as below.

5. At the time of deploying web application you need the following:
In IIS you have to create virtual directory.
Which is point out specific physical path on web server.
Default.aspx or Index.aspx is a page, which start the web application or other words you can say either this page is starting point of web application.
6. There is bin folder maintain by web application which contains all asseblies which uses at the time of running web application. Assemblies is nothing but dll files. When you compile your project, compiler create project assembly or dll file in default project bin folder. You can set assembly path manually(To change path go in project property).
7. Copy all aspx files and sub folders  goes in to root directory or Web application Virtual directory on web server.

for example:
Create Virtual directory : WebProject
Set Physical path of project : Suppose C:\inetpub\wwwroot\WebProject\
  Copy Default.aspx
 Copy bin folder which contains all project assemblies : Shared and Satellite assemblies.

Now when you write
http://localhost/WebProject/Default.aspx then Web application starts from that page and load on web browser.
Differences between ASP and ASP .NET
ASP .NET has better language support, a large set of new controls and XML based components, and better user authentication.

ASP .NET provides increased performance by running compiled code.

ASP .NET code is not fully backward compatible with ASP.


New in ASP .NET
Better language support
Programmable controls
Event-driven programming
XML-based components
User authentication, with accounts and roles
Higher scalability
Increased performance - Compiled code
Easier configuration and deployment
Not fully ASP compatible


Language Support
ASP .NET uses the new ADO .NET.

ASP .NET supports full Visual Basic, not VBScript.

ASP .NET supports C# (C sharp) and C++.

ASP .NET supports JScript as before.


ASP .NET Controls
ASP .NET contains a large set of HTML controls. Almost all HTML elements on a page can be defined as ASP .NET control objects that can be controlled by scripts.

ASP .NET also contains a new set of object oriented input controls, like programmable list boxes and validation controls.

A new data grid control supports sorting, data paging, and everything you expect from a dataset control.


Event Aware Controls
All ASP .NET objects on a Web page can expose events that can be processed by ASP .NET code.

Load, Click and Change events handled by code makes coding much simpler and much better organized.


ASP .NET Components
ASP .NET components are heavily based on XML. Like the new AD Rotator, that uses XML to store advertisement information and configuration.


User Authentication
ASP .NET supports forms-based user authentication, including cookie management and automatic redirecting of unauthorized logins.

(You can still do your custom login page and custom user checking).


User Accounts and Roles
ASP .NET allows for user accounts and roles, to give each user (with a given role) access to different server code and executables.


High Scalability
Much has been done with ASP .NET to provide greater scalability.

Server to server communication has been greatly enhanced, making it possible to scale an application over several servers. One example of this is the ability to run XML parsers, XSL transformations and even resource hungry session objects on other servers.


Compiled Code
The first request for an ASP .NET page on the server will compile the ASP .NET code and keep a cached copy in memory. The result of this is greatly increased performance.


Easy Configuration
Configuration of ASP .NET is done with plain text files.

Configuration files can be uploaded or changed while the application is running. No need to restart the server. No more metabase or registry puzzle.


Easy Deployment
No more server restart to deploy or replace compiled code. ASP .NET simply redirects all new requests to the new code.


ASP .NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP .NET.

To overcome this problem, ASP .NET uses a new file extension ".aspx". This will make ASP .NET applications able to run side by side with standard ASP applications on the same server.

If you want to understand more abount deployment of web application the refer following links:

I hope this is what you are looking for.
All the very best.
Alpesh Patel.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.