Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

HTML File Access Directly #1655


User avatar
0
jibbar created

Hi,

How I can insert HTML file in ASP.NET ZERO. How I can access that HTML file directly without routing.

For example, Want to access an HTML file through this URL localhost:6234/Application/testauth.html

Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    There is nothing special to AspNet Zero For this, you can do it as you do it in a classic MVC application.

    One way is, ignore route for the file

    routes.IgnoreRoute("testauth.htm");