.net coding?

R

Robin

If i save a page with the .aspx or .mspx extension does it really make it
..net as far as coding goes?
 
K

Kevin Spencer

Nope. It makes it a file with a .aspx extension. The ASP.Net HttpHandler
will certainly try to parse it if an HttpRequest is received for it by the
web server, but unless it IS an ASP.Net page, nothing special will come of
it. It is the CODE that makes it .net.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
M

MD Websunlimited

Technically yes as it will be seen by the server as requiring ASP.net support. However, unless it contains some ASP code you could
not consider it a .net page.
 
J

Jim Cheshire

MD said:
Technically yes as it will be seen by the server as requiring ASP.net
support. However, unless it contains some ASP code you could not
consider it a .net page.

Not really. If you don't have the file extension mapped in IIS, IIS will
serve it simply as an HTML page and no code will run. Making it .aspx
doesn't cause the server to see it as requiring ASP.NET.

It also doesn't require any ASP.NET code to be considered an ASP.NET page
(although it's significantly less useful without code.) What makes it an
ASP.NET page is when the request for it is handled by the ASP.NET
architecture. If ASP.NET is registered with the server, the request for a
..aspx page will be handled by the PageHandlerFactory HttpHandler.

The .mspx file extension is a file extension that Microsoft uses on some of
their sites. They have written a custom HttpHandler for those pages (one
that controls the caching of the page among other things) and mapped the
..mspx file extension to that HttpHandler. You can create your own
HttpHandler (likely beyond the scope of what you're doing) and then create
your own file extension to map it to. That extension could be anything
(like .robin) and then requests for those pages would be handled by your
HttpHandler.

That answer is probably more than you asked for, but now you know. :)

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top