473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,396 developers and data experts.

How To make URL in lowercase in Asp.Net Razor pages?

Suppose we want our URL in lowercase for that we need to code in ConfigureServices method where we can add a lowercase property in lowercase.

Expand|Select|Wrap|Line Numbers
  1. services.Configure<RouteOptions>(option =>
  2.         {
  3.             option.LowercaseUrls = true;
  4.             option.LowercaseQueryStrings = true;
  5.         });
  6.  
  7.  
Mar 31 '20 #1
1 7120
In the end I used attribute routing: https://blogs.msdn.microsoft.com/web...asp-net-mvc-5/
Apr 4 '20 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Danny | last post by:
How do you guys make listings such as product listings and their detail pages more crawler friendly, if they are genrated using dynamic asp pages. If your ASP uses a format like this:...
7
by: Mike | last post by:
Hi How can I make it so my web hosting server will redirect all hits to non existant web pages to the main index.html page? Thanks in advance
10
by: moondaddy | last post by:
I'm writing an ecommerce app in asp.net/vb.net and need to make the pages searchable and crawlable by spiders, particularly Google's. As far as I know, if my pages's contents are mostly populated...
0
by: | last post by:
Hi, I have a site created entirely in asp.net, are the search engines able to follow _DoPostBack() links within my page, if not what do I need to do in order to accomplish this? also what is...
4
by: Kenneth Keeley | last post by:
Hi All, How do I set Asp.Net to make the html code that it produces meet a W3C Standard. I would like to make all my pages meet XHTML 1.0 Strict standard if not at least meet XHTML 1.0...
3
by: RCS | last post by:
I have an app that I have different "sections" that I want to switch back and forth from, all while having the server maintain viewstate for each page. In other words, when I am on Page1.aspx and...
3
by: E | last post by:
Hi, I'm creating a few pages on my site that you need to login to view. The login pages and the secure pages are .aspx . If I want links at the top of all pages on the site that says either...
4
by: bienwell | last post by:
Hi all, I have .NET framework 1.1 and 2.0 installed in the same server. I had some web pages developed in Visual Studio.NET 2003 and some inline code web pages before (framework 1.1) . Now I...
3
by: Jason | last post by:
Will just getting VB.net allow me to make asp server pages, or web applications? Or do I need the whole suite?
1
by: Divya Suresh | last post by:
Hi there, Can any body help me? My web pages are looking different in IE 6 when compared to IE 7. In IE 6 its considering some break tags though there are none of them present. But the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.