Re: Hide ASPX Extension

Tech-Archive recommends: Fix windows errors by optimizing your registry



Jaun,

Thanks a bunch! I will definitely look into doing this. Do you know if using master pages with this methods would cause any issues?

Thanks again,

Matt


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message news:uRu3MLPfGHA.3888@xxxxxxxxxxxxxxxxxxxxxxx
re:
> I have never heard of this method nor ever seen it implemented.
> Where can I find more information about it's use and how to implement it?

That method not only hides the extension, it hides the whole filename!

It's quite simple :

default.aspx :
=========
<html>
<head>
<title>Main</title>
</head>
<frameset rows="0,*">
<frame name="a" scrolling="no" noresize="noresize" target="main" src="a.aspx">
<frameset cols="*">
<frame name="main" src="main.aspx">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
======

main.aspx :
========
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>Frameset</title>
</head>
<body>
<a href="someother.aspx" target="main">Some other ASPX page</a>
</body>
</html>
=======

That's it!

You can place links to any *.aspx page in main.aspx, and they will be displayed
in the "main" frame without the filename being displayed in the browser!

You'll probably need to include some sort of navigation menu in all the pages linked to in
main.aspx.
You'll also need to include Page and Language directives if you need them.

That shouldn't be too hard of a job...




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Matt" <mdframe@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23jRmCzOfGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
Juan,

I have never heard of this method nor ever seen it implemented. Where can I find more information
about it's use and how to implement it?

Thanks,

Matt


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:Ovfr1oNfGHA.1320@xxxxxxxxxxxxxxxxxxxxxxx
Gerry,

inherent to *every* question is the underlying metainfo
as to whether the answer sought is convenient or not.

That saves a lot of barking up the wrong trees,
and warns all readers about the pitfalls in proposed code.

In this case, implementing what you proposed would increase the server workload
by a large factor, reducing the throughput for the server where that "solution" is implemented.

Sorry, nothing personal, but the proposed answer,
though technically correct, is worthless as a solution.

In any case, it's much simpler to hide the aspx extension by using a frameset in which
the first frame has zero for its number of rows and all the content is written in the
second frame, with * specified in the default frameset for the number of its rows.

That will, effectively, hide the extension for the default page but won't overload the server.
All other pages are exposed as links which have the 2nd frame as their target.

This is an old HTML trick to hide page extensions, although it has nothing to do with ASP.NET.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"gerry" <germ@xxxxxxxxxxxxx> wrote in message news:e4P3vDNfGHA.2032@xxxxxxxxxxxxxxxxxxxxxxx
> sure - but that wasn't the question being asked.


> "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
> news:er0RM%23$eGHA.4976@xxxxxxxxxxxxxxxxxxxxxxx
>> If you do that, I fear your site's throughput will sink.
>>
>> What you are suggesting would increase the site's processing by at least
> 2-300%
>> which would reduce your site's throughput to 33% or 25% of what it should
> handle.
>>
>> For what ? For an esthetic "hide my extension" consideration ?
>>
>> Thanks, but no thanks.
>>
>> I value ASP.NET for its processing capability, which allows me to have
> much
>> more throughput than comparable platforms...with a lot less programming
> effort.
>>
>> Hobbling my web server to satisfy an esthetic desire is pointless, imho.
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> ===================================
>> "gerry" <germ@xxxxxxxxxxxxx> wrote in message
> news:OqvzSn6eGHA.2456@xxxxxxxxxxxxxxxxxxxxxxx
>> configure iis to have all requests ( * ) handled by asp.net
>> configure the appropriate static resource handlers in your web.config -
> .gif , .js , .css etc
>> in Application_BeginRequest use url rewriting to send the remaining
> requests to the proper handler
>>
>> ie
>> requests for http://www.mysite.com sent to default.aspx
>> requests for http://www.mysite.com/products sent to products.aspx
>> requests for http://www.mysite.com/support sent to support.aspx
>> ...
>>
>>
>> Gerry

>> "Matt" <mdframe@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:%23ESWgh5eGHA.4976@xxxxxxxxxxxxxxxxxxxxxxx
>> Does anyone know how to hide the ASPX extension of web pages in ASP.Net
> 2.0?
>>
>> Thanks,
>>
>> Matt




Relevant Pages

  • Re: Hide ASPX Extension
    ... reducing the throughput for the server where that "solution" is implemented. ... second frame, with * specified in the default frameset for the number of its rows. ... That will, effectively, hide the extension for the default page but won't overload the server. ... requests for http://www.mysite.com sent to default.aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Hide ASPX Extension
    ... That method not only hides the extension, ... reducing the throughput for the server where that "solution" is implemented. ... >> requests for http://www.mysite.com sent to default.aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: xserver-xorg-video-geode: Problems with geode Xorg driver
    ... corrupted When I try the EXA AccelMethod the server crashes ... ... X.Org Server Extension, ... Loading extension XFree86-DRI ... clock/interlace/doublescan) GEODE: Not using default mode ...
    (Ubuntu)
  • Re: xserver-xorg-video-geode: Problems with geode Xorg driver
    ... corrupted When I try the EXA AccelMethod the server crashes ... ... X.Org Server Extension, ... Loading extension XFree86-DRI ... clock/interlace/doublescan) GEODE: Not using default mode ...
    (Ubuntu)
  • xserver-xorg-video-geode: Problems with geode Xorg driver
    ... When I try the EXA AccelMethod the server crashes ... ... ABI class: X.Org Server Extension, ... Loading extension XFree86-DRI ...
    (Ubuntu)