Having URL Without .aspx Extension?

Nov 7, 2010

I noticed a lot of ASP .Net sites does not have the URL ending with ".aspx".

An example would be: [URL]

Did they create a Questions folder and put a Default.aspx inside?

In that case, wouldn't there be A LOT of default.aspx in many folders which is hard to maintain (even though it is user-friendly)?

View 5 Replies


Similar Messages:

Remove HTML Or ASPX Extension?

Dec 19, 2010

In a hosted IIS7 environment, I am looking for the simplest way to use extension-less file names. Simply I have the following pages:

index.html (or .aspx) --> domain.com
gallery.html --> domain.com/gallery
videos.html --> domain.com/videos
etc...

I only have a handful of pages, I have no dynamic code, nothing special. All the examples I have found or methods I use in other sites I've developed revolve around dynamic content, pages, etc. I am simply looking for the simplest solution, ideally not requiring any sort of url rewrite module installed. Preferably, I could keep the .html extension instead of converting the site to a ASP.NET project, but that is an option.

View 3 Replies

Web Forms :: Hide ASPX Extension In URL

Dec 17, 2012

How to hide extension name in website . like default.aspx to default .

View 1 Replies

Web Forms :: How To Remove Extension (ASPX) From URL

Aug 22, 2013

I want to remove the extension .aspx from the url. Instead of displaying www.developer.com/Contact.aspx should display www.developer.com/Contact .. How could it be achieved. Data is static and database is not use .

View 1 Replies

Configuration :: Handling Page URL Without .aspx Extension?

May 22, 2010

I want my site visitors to be able to navigate to a page without having to type the .aspx extension. For example, if I have a page file named info.aspx I want site visitors to be able to go to that page with a URL like this: www.mysite.com/info without the aspx extension. Is there a way to do this in the web.config file?

View 1 Replies

Use Extension Methods Inline In An ASPX Page?

Jan 15, 2010

Is it possible to do something like this inline in an ASPX page?

<%= Me.SomeExtensionMethod() %>

I can't seem to figure out how to get this to work properly. I'm receiving an error saying that "SomeExtensionMethod" is not a member of the current Page object. I've added the necessary <%@ Import Namespace="..." %> directive at the top of my page. This Does work in code-behind.This isn't vitally important, but it would be good to know how to do in the future.

View 2 Replies

Configuration :: Hiding .aspx Page Extension?

Nov 23, 2010

Is there a way of hiding the .aspx page extension in ASP.NET pages to look like MVC applications?

View 3 Replies

Web Forms :: How To Hide (remove) ASPX Extension In URL

May 7, 2015

how to hide .aspx extension and only display folder name as done in this site

View 1 Replies

How To Use An Extension Method From A Code Block In Aspx Page

Mar 23, 2010

I have an extension method which I can use from the .cs codebehind of an aspx page, but if I try to do it in a code block in the aspx, it can't find the extension method. Is there something I need to add to the page?

View 2 Replies

Web Forms :: Change Webpage Extension From ASPX To HTML?

Apr 12, 2013

I want to change my web page extension. I don't know how to change my aspx extension to html .how i can change my extension.

View 1 Replies

Added The .aspx Extension To The Controller In My Global.asax File?

Oct 15, 2010

Has anyone had any luck getting MVC 3 working on IIS 6?I've added the .aspx extension to the controller in my global.asax file. I also have Default.aspx in the root of the project with the following code-behind:

[Code]....

This is what my global.asax looks like:

[Code]....

.NET 4.0 has been installed on the server, and is selected for the project. All of this, and I still get HTTP Error 404 -

View 8 Replies

C# - Serving An Exe To Firefox From An Aspx. Firefox Downloads It As "Content". Incorrect Filename And No Extension?

Mar 28, 2011

I'm trying to server an exe to Firefox from an aspx page. The aspx page handles the headers and the page is launched by our Flex GUI. Flex correctly launches the link for all browsers (including Firefox) so I'm certain that's not the issue.

The problem I'm having is when I try to download the file from within Firefox, FF downloads the file fine but it names it "Content". It has no extension and the file name is incorrect. All the other browsers download it with the file name I specified in the aspx page and they all have the .exe extension. I should note that if I rename the "Content" file to "Content.exe" it runs correctly.Below is the code I'm using in my aspx page -

protected void Page_Load(object sender, EventArgs e) {
string fileName = Request.QueryString["file"];
System.IO.FileInfo fileInfo = new System.IO.FileInfo(Server.MapPath(fileName));

[code]...

View 2 Replies

Web Forms :: How To Load Files (file1.aspx And File1.aspx.vb) In A Container On Index.aspx

Jul 13, 2010

I want to know how can I load my files (file1.aspx and file1.aspx.vb) in a container on my index.aspx. My index should have my menu and my container. My problem is that i don't know how do that... options wich i tried:

Iframes: yes work it... but in html 5 iframe will dissapear...

MasterPage: isn't the solution because this refresh all index page.

Ajax: yes.. charge my File1.aspx in the container but i can't call the functions of File1.aspx.vb...

View 2 Replies

What Is The Best Extension For RSS

Dec 26, 2010

Who does know what is the best file extension for RSS feed on the site (for SEO):

(XML) mysite.com/rss.xml
(RSS) mysite.com/rss.rss
(HTML) mysite.com/rss.html
(ASPX, PHP, etc) mysite.com/rss.aspx
(with url params) mysite.com/rss.aspx?param1=val1&param2=val2

some other

I'm going to use (3) html on my site, is it ok?

View 2 Replies

Web Forms :: What Is .xap Extension

Jan 20, 2010

I've looked at a few files this AM, all have .xap, and all are throwing errors as I try to debug each of these projects. Here is an excellent example:

http://www.codeproject.com/KB/silverlight/TallColumns.aspx

I'd like to learn how this project works, but each time I try to debug, it throws an error saying 'Error creating control xaml1, unknown server tag asp.SilverLight'. what does this mean? What do I need to do to make this work?

I'm using VWD 2008 Express.

View 7 Replies

Php - What Are Pros To Use Extension - Less Url

Jan 31, 2010

What are pros to use extension-less url? in any terms. like [URL] to [URL] and is it possible to have extension-less url for every page? Update: Is extension less url better for site security?

View 6 Replies

What Is Extension Method In Net

Feb 12, 2010

i saw the extension method code but i could not understand what it is and what is the utilities of extension method.

View 3 Replies

Make Url Extension Less?

Oct 14, 2010

how can i make urls without extention it means without .aspx or .html??

View 3 Replies

Download File Without Extension?

Mar 11, 2010

I want user can save a file after click on a link.

I write the following code:

[Code]....

[Code]....

but save dialog box shows file without extension of file..

and file save on system without any extension...

View 4 Replies

Add Extension Method To Service?

Mar 12, 2011

I am using Tuple class in WCF Service. When i add reference to my web project I get Tuple class. Now i want to add an extension method to Tuple<> class in my service which will be accessible in my Web project.

View 1 Replies

Extension Method Have Any Limitation In C#?

Feb 22, 2010

I want to ask, does adding extension methods to datatypes works in the same way as Microsoft's methods or do they have any limitaion.

This is relevant to experienced programmers who had find some limitations while using them.

View 3 Replies

MVC :: Using Class Extension With Views?

Jul 6, 2010

how to use class extensions with Views?

I'm using VB.Net, Visual Studio 2010 Ultimate and developing an ASP.MVC 2 application.

I have an module that defines some extensions to the String class. In a WinForm application, I would simply use a Imports statement to include my String extension module into my class. But, in Views, the compiler complains when I try doing that.

View 10 Replies

Hide Or Modify The Url Extension?

Feb 24, 2011

I want to hide or modify the url extension by default it is set to aspx. Can it be modified in asp.net

View 2 Replies

Hide Page Extension In Url?

Jun 8, 2010

How can i hide page extension (for ex .aspx , .php) from url of the page

View 3 Replies

Configuration :: Add .html Extension In IIS 6.0?

Dec 21, 2010

we are developing asp.net web application with form authentication in IIS 6 - Windows server 2003.

the application is working fine.

but .html extension does not working.

How can i add or enable .html extension in my website(IIS 6.0)?

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved