ASP.NET and ASP Conversion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi! All,

If I just convert a ASP file extension to .ASPX and place it in a ASP.NET
Application, will the page execute?? If no, then how can we make the page
execute without much changes to the code(incase there is some alternate
method to do so)?

Thanks in advance..

Regards,
Baren
 
Hi! All,
If I just convert a ASP file extension to .ASPX and place it in a ASP.NET
Application, will the page execute?? If no, then how can we make the page
execute without much changes to the code(incase there is some alternate
method to do so)?

Thanks in advance..

Regards,
Baren

Sorry, I don't think you can easily convert the code.

ASP classic uses inline vbscript (or jscript) code,

ASP.Net uses VB.Net (which is different from both VB6 and VBScript) or
C# (or any other .Net language). It *can* use an inline coding model,
but code-behind (or the partial classes feature of .net 2.0) is much
better.

You *can* call your own (or other) COM objects from .Net (in case you
need that), but for performance it's better (and possible) to stick to
..Net classes.


Hans Kesting
 
I 'm not trying to insult you, but that the car-equivalent of:

If I have a Ford Pinto, and change all Pinto emblems with Mustang
emblems....will I have I Ford Mustang?

Asp.Net is radically different from ASP.

ADO.NET is especially radically different from ADO.


I'd start with a basic asp.net 101 book. actually, www.asp101.com has some
(parallel) examples in asp and asp.net ... so you'll can see some
differences.

...
 
if your asp site is written in javascript its pretty simple. there are a
couple rules. inline code must be in <% %> block, function and variables
defs should be in a <script runat=server> block.

if your asp code is vbscript, then you must follw the rules above, and make
the language syntax changes. I'd just do a rewrite.

-- bruce (sqlwork.com)
 
Back
Top