Click here to Skip to main content
16,018,458 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I'm having a path problem in my application. I'm trying to get the root url using

JavaScript
<base href='<%# Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + '/'%>' />


But when I run the application and see through page source the the tag will be like

JavaScript
<base href= '' />


It is not getting the root url. I need suggestions on this please.

Regards,
Nuthan A R
Posted
Comments
Can you simply try to get the values of individually first?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900