473,386 Members | 1,835 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.

Very easy: difference between aspx and asp

Hi there,

I am quite new in terms of server side programming. I understand how asp
scripting works and how you put <% %> around your server script. However this
is .asp .......what is .aspx? is this the new version ASP.nET?

I dont understand how it works when i create a new aspx project in
vstudio.net and i create a aspx page in design view. I add a button and then
double click it to add code to that button. I dont see any html code around
it?? In an asp page the server side code is surrounded by html code!

An aspx page almost looks like a normal vb application, why is there no html
code around?

Thanks,

Joshua Weir
Jul 19 '05 #1
5 5290
Although file extensions are arbitrary, for the sake of this discussion,
yes, asp = ASP.old, and aspx = ASP.NET.

Visual Studio uses "code behind" files when creating ASP.NET pages.
Interlaced code still exists in ASP.NET though, or code in the same file.
The code doesn't have to be in a separate file. Perhaps start here:
http://support.microsoft.com/?kbid=303247 or
http://www.4guysfromrolla.com/webtec...tml#postadlink

Also, so you know for any future, the microsoft.public.inetserver.asp.*
groups are the ASP.old groups, whereas the ASP.NET groups have "aspnet" in
their names.

Ray at work

"Joshua Weir" <Jo********@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
Hi there,

I am quite new in terms of server side programming. I understand how asp
scripting works and how you put <% %> around your server script. However
this
is .asp .......what is .aspx? is this the new version ASP.nET?

I dont understand how it works when i create a new aspx project in
vstudio.net and i create a aspx page in design view. I add a button and
then
double click it to add code to that button. I dont see any html code
around
it?? In an asp page the server side code is surrounded by html code!

An aspx page almost looks like a normal vb application, why is there no
html
code around?

Thanks,

Joshua Weir

Jul 19 '05 #2
Thanks Ray this makes sense,

Another question, say i have a simple vb.net form application that i want to
implement with ASP.net. Does this mean i can pretty much implement all the
functionality in the same way (assuming that ASP.net uses VB.net and not
VBScript)

ie. i create all the forms, then add vb.net code to each as i would in the
form application.

Or does it use a hybrid form of vb.net?

"Ray Costanzo [MVP]" wrote:
Although file extensions are arbitrary, for the sake of this discussion,
yes, asp = ASP.old, and aspx = ASP.NET.

Visual Studio uses "code behind" files when creating ASP.NET pages.
Interlaced code still exists in ASP.NET though, or code in the same file.
The code doesn't have to be in a separate file. Perhaps start here:
http://support.microsoft.com/?kbid=303247 or
http://www.4guysfromrolla.com/webtec...tml#postadlink

Also, so you know for any future, the microsoft.public.inetserver.asp.*
groups are the ASP.old groups, whereas the ASP.NET groups have "aspnet" in
their names.

Ray at work

"Joshua Weir" <Jo********@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
Hi there,

I am quite new in terms of server side programming. I understand how asp
scripting works and how you put <% %> around your server script. However
this
is .asp .......what is .aspx? is this the new version ASP.nET?

I dont understand how it works when i create a new aspx project in
vstudio.net and i create a aspx page in design view. I add a button and
then
double click it to add code to that button. I dont see any html code
around
it?? In an asp page the server side code is surrounded by html code!

An aspx page almost looks like a normal vb application, why is there no
html
code around?

Thanks,

Joshua Weir


Jul 19 '05 #3
Did you read the part about how this is an ASP.old group. ;]

Ray at home

"Joshua Weir" <Jo********@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Thanks Ray this makes sense,

Another question, say i have a simple vb.net form application that i want
to
implement with ASP.net. Does this mean i can pretty much implement all the
functionality in the same way (assuming that ASP.net uses VB.net and not
VBScript)

ie. i create all the forms, then add vb.net code to each as i would in the
form application.

Or does it use a hybrid form of vb.net?

"Ray Costanzo [MVP]" wrote:
Although file extensions are arbitrary, for the sake of this discussion,
yes, asp = ASP.old, and aspx = ASP.NET.

Visual Studio uses "code behind" files when creating ASP.NET pages.
Interlaced code still exists in ASP.NET though, or code in the same file.
The code doesn't have to be in a separate file. Perhaps start here:
http://support.microsoft.com/?kbid=303247 or
http://www.4guysfromrolla.com/webtec...tml#postadlink

Also, so you know for any future, the microsoft.public.inetserver.asp.*
groups are the ASP.old groups, whereas the ASP.NET groups have "aspnet"
in
their names.

Ray at work

"Joshua Weir" <Jo********@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
> Hi there,
>
> I am quite new in terms of server side programming. I understand how
> asp
> scripting works and how you put <% %> around your server script.
> However
> this
> is .asp .......what is .aspx? is this the new version ASP.nET?
>
> I dont understand how it works when i create a new aspx project in
> vstudio.net and i create a aspx page in design view. I add a button and
> then
> double click it to add code to that button. I dont see any html code
> around
> it?? In an asp page the server side code is surrounded by html code!
>
> An aspx page almost looks like a normal vb application, why is there no
> html
> code around?
>
> Thanks,
>
> Joshua Weir


Jul 19 '05 #4
Reply #2

Part of the problem with ASP.NET, which is amplified by the usage of Visual
Studio.NET, in my opinion, is that these things are desinged such that
they're almost trying to "trick" the developer into either forgetting or
never realizing that ASP.NET is still a Web-based technology that is not
client-event-aware. Using ASP.NET, one can add an "onclick" event to a
button that the server handles, but what's really happening is that ASP.NET
is "automagically" generating the necessary HTML to make that click event
post back data to the server where it automagically will "wire up" that
event to the onclick code.

In theory, ASP.NET functionality could be duplicated with a well organized
library of include files. But, I personally will leave such tasks up to
Microsoft...

And the usage of .NET languages in ASP.NET is a benefit that cannot be
overlooked, so don't get me wrong. I'm completely in favor of ASP.NET.

So, no, you can't just take a VB.NET form and have it be an ASP.NET form.
An ASP.NET form is still just an HTML form, although VS.NET will try to
trick you into forgetting that. :]

Ray at home

"Joshua Weir" <Jo********@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Thanks Ray this makes sense,

Another question, say i have a simple vb.net form application that i want
to
implement with ASP.net. Does this mean i can pretty much implement all the
functionality in the same way (assuming that ASP.net uses VB.net and not
VBScript)

ie. i create all the forms, then add vb.net code to each as i would in the
form application.

Or does it use a hybrid form of vb.net?


Jul 19 '05 #5
Ron
Hey Joshua,

when you are in design view, instead of going to the code behind module, you
can click on the HTML tab at the bottom of the page in design view. this
will take you to the HTML that you miss from classic ASP. in ASP.NET you
have a Design view, and HTML view AND a code behind module (that you do not
need to use).

also, the fundamental difference between web development and "regular"
windows form development with .NET is that windows forms programs use the
System.Windows.Forms namespace and web forms use the System.Web.UI namespace.

So even though it can "feel" the same when you are programming, it is not
the same. lyou have to get familiar with the classes, objects methods etc
etc of each namespace to become fluent.

you might want to try some of the walkthroughs that come with the visual
studio msdn help. it should help you get started.

Ron

"Joshua Weir" wrote:
Hi there,

I am quite new in terms of server side programming. I understand how asp
scripting works and how you put <% %> around your server script. However this
is .asp .......what is .aspx? is this the new version ASP.nET?

I dont understand how it works when i create a new aspx project in
vstudio.net and i create a aspx page in design view. I add a button and then
double click it to add code to that button. I dont see any html code around
it?? In an asp page the server side code is surrounded by html code!

An aspx page almost looks like a normal vb application, why is there no html
code around?

Thanks,

Joshua Weir

Jul 19 '05 #6

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

Similar topics

2
by: Alex | last post by:
Hello I am interested learn more about .NET but am uncertain of exactly what niche it fills in the world of programming. (The more I read the more I am confused). What I am looking for is the...
1
by: Newbee Adam | last post by:
1. what is difference between buil and delpoy? 2. If I am finished with a web app lets say. how do I compile it and what type of a file will it be? .dll, aspx,... 3. how do I bundle an...
6
by: Omid Hodjati | last post by:
Hi All, I implemented an encryption algorithm using C#, native C++ and managed C++. Then I measured the CPU time used for executing this algorithm in all implementation. The managed version of...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
7
by: Jack | last post by:
Hello, What is the difference between SRC and CODEBEHIND Tags? Example <%@ Page Language="vb" ValidateRequest="false" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" %> or
2
by: 23s | last post by:
My site's login page has a form w/ 2 textboxes and a submit button. If I'm in either of those textboxes (i.e., either one of the textboxes has focus), in any given browser, hitting "enter" on my...
4
by: SAI | last post by:
Both have "TextBox" element and "Runat server". I don't understand the difference. Please advise. Thanks.
4
by: Mason Barge | last post by:
I'm learning how to build a website. So far I've gotten pretty good with HTML, CSS, and Paint Shop Pro, and I'm currenly learning the basics of Javascript. I'm hoping, eventually, to build and...
2
by: Tony Johansson | last post by:
Hello! I'm new to ASP.NET application but I have been using C# windows form for one year. I'm reading a book about Webbdevelopment. Below is a small ASP.NET application. I just wonder why is...
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...
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
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
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,...

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.