mardi 1 novembre 2016

How replace '~' symbol in MVC with physical path

In Mvc application if the Layout is added with

@Scripts.Render("~/bundles/jquery") .

Need a solution to replace the


symbol .So that Output should not be like /Content/themes/base/jquery.ui.core.css in render page .


localhost:xxxxx/Content/themes/base/jquery.ui.core.css .

This Localhost need to be added when mvc application is run under IISExpress wherein It get modified to hosted application path when hosted into the server

Aucun commentaire:

Enregistrer un commentaire