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
What asp.net control can embed xaml into asp.net pages?
What are different methods of session maintenance in asp.net?
What is a session government?
How do you open a page in a new window?
Differentiate between a page theme and a global theme?
How can we create pie chart in asp.net?
What is content place holder?
How many types of session in ASP.NET
Explain the difference between response.redirect vs server.transfer
What are the server control tags in asp.net.?
What is active web pages?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
Explain difference between dataset and datareader?
What is windows active directory authentication?
What are the different types of validation controls provided in ASP.NET?