1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'ASP.NET' started by Sagar Jaybhay, Mar 31, 2020.

Tags:
  1. Sagar Jaybhay

    Sagar Jaybhay New Member

    Joined:
    Jan 28, 2019
    Messages:
    29
    Likes Received:
    17
    Trophy Points:
    3
    Gender:
    Male
    Occupation:
    Sr. Software Developer
    Location:
    Pune
    Home Page:
    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.

    Code:
    
    services.Configure<RouteOptions>(option =>
            {
                option.LowercaseUrls = true;
                option.LowercaseQueryStrings = true;
            });
    
     

Share This Page