“~” 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

What is application Object?

595


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

573


Explain the components of web form in asp.net

547


Explain about asp.net state management?

618


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

1379






Explain different types of validators in asp.net?

537


What are the features that make asp.net more used framework? : asp.net mvc

551


Can we use MSSql as backend in asp.net...if yes then How.?

585


What is the difference between viewstate and hidden field in asp.net?

491


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

567


Explain about the Class view window?

596


What are the asp.net list controls and difference between them?

521


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1674


How do sessions work?

540


What is the asp.net mvc folder conventions? : asp.net mvc

471