Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Upgrading to ASP.Net

Reply
Thread Tools

Upgrading to ASP.Net

 
 
Dave1031
Guest
Posts: n/a
 
      08-22-2008
I know I am quite behind the times but I need to finally upgrade our website
from classic ASP 3.0 to ASP.Net.

I plan on creating apsx pages with the same names as the old asp pages.
Then remove all of the code from the old asp page with the exception of a
Response.redirect to the comparably named apsx page.

Is this pretty much standard practice when upgrading?

Any insights from someone who has done this?
 
Reply With Quote
 
 
 
 
Adrienne Boswell
Guest
Posts: n/a
 
      08-23-2008
Gazing into my crystal ball I observed =?Utf-8?B?RGF2ZTEwMzE=?=
<> writing in
news:66E437FB-0534-4F57-9058-:

> I know I am quite behind the times but I need to finally upgrade our
> website from classic ASP 3.0 to ASP.Net.
>
> I plan on creating apsx pages with the same names as the old asp
> pages. Then remove all of the code from the old asp page with the
> exception of a Response.redirect to the comparably named apsx page.
>
> Is this pretty much standard practice when upgrading?
>
> Any insights from someone who has done this?


If you have an include that all the pages use, that might be at the top
before anything is written out to the client, you could put the
information there. I would suggest, however, using a 301 response code,
that will tell search engines that this is a _permanent_ redirect.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
 
 
 
Old Pedant
Guest
Posts: n/a
 
      08-23-2008
"Dave1031" wrote:

> I plan on creating apsx pages with the same names as the old asp pages.
> Then remove all of the code from the old asp page with the exception of a
> Response.redirect to the comparably named apsx page.
>


There is a possible major problem with this approach: If your ASP pages
depend in any way on session variables, then you won't be able to convert
piecemeal. You'll have to do it all at one time. That's because ASP and
ASP.NET don't share session variables.

If you were planning to do an all-at-once replace, anyway, ignore this
little man in the corner.

 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      08-24-2008
Thanks guys.

I found the following example on http://www.somacon.com/p145.php

<%@ Language=VBScript %>
<%
' Permanent redirection
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.somacon.com/"
Response.End
%>

....but it never seemed to effect the redirect so I ended up using this...

<%@ Language=VBScript %>
<%
Response.Redirect "default.aspx"
%>

<html>
<body>
<p>Page moved</p>
</body>
</html>

...which seems to work fine unless there is something I 'm not aware of?

The session variables are not an issue (although I did notice that the
session id is no longer an int but a varchar and it seemd to change with
every page request. What's up with that?).

Thanks
Dave.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on Upgrading of Section of LAN to Wireless Drew Wireless Networking 6 08-19-2005 06:48 PM
Laptop won't connect to internet after upgrading to SP2 =?Utf-8?B?am9obm55X3dheg==?= Wireless Networking 1 07-31-2005 02:35 AM
Video card Upgrading Poppn Hardware 15 07-09-2005 04:25 AM
Upgrading to high speed, FAQ? David Wireless Networking 4 11-09-2004 08:43 PM
Upgrading LadySpudz Firefox 2 05-04-2004 11:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57