Answer Posted / s. verma
Absolute paths are not portable between applications. If you
move the application that the absolute path points to, the
links will break.
Relative paths in the style of client elements can be
difficult to maintain if you move resources or pages to
different folders.
To overcome these disadvantages, ASP.NET makes available the
Web application root operator (~), which you can use when
specifying a path in server controls. ASP.NET resolves the ~
operator to the root of the current application. You can use
the ~ operator in conjunction with folders to specify a path
that is based on the current root.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain difference between friend and protected friend?
Which is better viewstate or session?
What are Master Pages in ASP.NET?
Diff between web user control and web custom control?
What are merge modules?
Explain different authentication modes in asp.net?
What is a session in programming?
How to find last error which occurred in Asp.net ?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
COM+ Used ________________ Isolation Level
What is the difference between the asp and asp.net?
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
Apart from IDE what are the enhancements in asp.net 2.0?
Can we store object in viewstate?
What is the purpose of url encoding?