javascript - HTML DOCTYPE Syntax error on js files -


i have 5 errors on login page syntaxerror: syntax error <!doctype html> on 5 js files, when checked files, found in non public directory.

how can ignore these files on login page or add authorization these 5 files ?

thanks

there several things do:

if need files on login-page:

  • move files public folder
  • add location section web.config make folder public

if don't need them on login-page:

  • make sure don't reference files if user not authenticated. example in view:

    @{     if (user.identity.isauthenticated){         <text><script src="..." /></text>     } } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -