Many time we face a problem of JavaScript path
Like you have given path in Master page like "../a.js" so, if you have page at "../../../default.aspx" position it will not import this Js into your page or you will face problem with JS.
So if you want to use a perfect path for your JS use Resolve URL method.
For ex. <script type="text/javascript" src="<%=ResolveUrl("~/js/example.js")%>"></script>
This is the right way work with Dot Net and JS
Absolute path to Javascript
An IT Solution is a purpose and value-driven organization where everyone is empowered to take decisions in line with our culture. We provide a unique environment of freedom, flexibility & trust that allows an individuals potentials to flower; this results in tremendous growth opportunities.Such a culture, naturally, appeals to everyone. We listen, we think and we act. The IT field is all about thought leadership. We invest in thought for you as customers
No comments:
Post a Comment