Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Existing asp page -> Compiled aspx without changing the path

Reply
Thread Tools

Existing asp page -> Compiled aspx without changing the path

 
 
Dave
Guest
Posts: n/a
 
      05-24-2004
I have an existing asp page that I would like to upgrade/convert to
aspx. It gets a million or two hits per day, so I'm surmising that at
a minimum I would benefit from compilation and the OutputCache
directive. If not, please stop me now!

In any event, since this page is linked to by numerous external sites,
I can't change the path or even the extension. How can I go about
creating an ASPX application in the same location while also
maintaining the .asp extension on the page?

Many thanks,
Dave
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmljaA==?=
Guest
Posts: n/a
 
      05-24-2004
There might be better ways but you could always change the code in the .asp page to a single line: a response.redirect to the .aspx page. Inform webmasters of external sites to start using the .aspx extension. Over time, you could then delete the .asp page after noone is using it anymore..
 
Reply With Quote
 
 
 
 
Raterus
Guest
Posts: n/a
 
      05-24-2004
Well you can do that by playing with the "Application Configuration" under IIS. Just change .asp pages to run under what your .aspx pages run under. For me its "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet _isapi.dll" I don't think you want to do that though, this would make all existing .asp pages on your application be processed through aspnet (I don't see how you could accomplish a single page only configuration within the same application). Have you given any thought to issuing a HTTP 301 error for the page?, I've never tried it, but I would think the browser would redirect you to the page it specifies.

Also if your page is getting that many hits, you may want to move to a solution where there is no page name, assuming at some point you may have to make this change again. Take google for instance, you never see a "search.html" file, it is all handled at the webserver and requests at the directory level (which a default document is spit out)

Hope this helps,
--Michael

"Dave" <(E-Mail Removed)> wrote in message news:(E-Mail Removed) om...
> I have an existing asp page that I would like to upgrade/convert to
> aspx. It gets a million or two hits per day, so I'm surmising that at
> a minimum I would benefit from compilation and the OutputCache
> directive. If not, please stop me now!
>
> In any event, since this page is linked to by numerous external sites,
> I can't change the path or even the extension. How can I go about
> creating an ASPX application in the same location while also
> maintaining the .asp extension on the page?
>
> Many 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
If I create a page, then it's compiled upon first request, where cani find the compiled code?? lander ASP .Net 5 03-05-2008 04:34 PM
Changing an ASPX page without recompiling the web app paul.gibson@i-stat.com ASP .Net 2 10-24-2006 03:18 PM
Server control on non-compiled .aspx page Gordo ASP .Net 6 02-04-2005 04:41 PM
g++ compiled C++ code called from gcc compiled C code Klaus Schneider C++ 1 12-02-2004 01:44 PM
Cannot view any .aspx page without .aspx.cs present Jerry Tovar ASP .Net 1 10-23-2003 05:59 PM



Advertisments