“~” means in asp.net application?

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


Please Help Members By Posting Answers For Below Questions

Explain About WebService

763


Define page fragment caching?

601


What is a web api endpoint?

622


Where would you use an ihttpmodule, and what are the limitations if any?

618


What is validation in asp.net?

664






Explain about Automatic resource management?

680


Is asp.net different from asp? If yes, explain how?

596


What is clickid?

652


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

504


What are the different methods of session maintenance in asp.net?

630


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

679


What are the various types of cookies in asp.net?

627


Where session id is stored?

630


Define data caching?

621


What is the difference between session.abandon() vs clear()?

624