sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
=?Utf-8?B?RGF2ZTEwMzE=?='s Avatar

Upgrading to ASP.Net


Question posted by: =?Utf-8?B?RGF2ZTEwMzE=?= (Guest) on August 22nd, 2008 04:05 PM
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?
3 Answers Posted
Adrienne Boswell's Avatar
Adrienne Boswell August 23rd, 2008 02:35 PM
Guest - n/a Posts
#2: Re: Upgrading to ASP.Net

Gazing into my crystal ball I observed =?Utf-8?B?RGF2ZTEwMzE=?=
<Dave1031@discussions.microsoft.comwriting in
news:66E437FB-0534-4F57-9058-915CE9117AB0@microsoft.com:
Quote:
Originally Posted by
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

=?Utf-8?B?T2xkIFBlZGFudA==?='s Avatar
=?Utf-8?B?T2xkIFBlZGFudA==?= August 23rd, 2008 08:55 PM
Guest - n/a Posts
#3: Re: Upgrading to ASP.Net

"Dave1031" wrote:
Quote:
Originally Posted by
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.

Dave's Avatar
Guest - n/a Posts
#4: Re: Upgrading to ASP.Net

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.



 
Not the answer you were looking for? Post your question . . .
197,045 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,045 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors