“~” means in asp.net application?

Answers were Sorted based on User's Feedback



“~” means in asp.net application?..

Answer / lakshmikanth

~ is used to call destructor also

Is This Answer Correct ?    9 Yes 1 No

“~” means in asp.net application?..

Answer / 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

“~” means in asp.net application?..

Answer / anjani

"~" is used to represent the current application folder in asp.net

Is This Answer Correct ?    6 Yes 0 No

“~” means in asp.net application?..

Answer / harender

good

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

.net allows which inheritence

6 Answers   AG Technologies, Samcomm,


How do we assign page-specific attributes?

0 Answers  


What is server side session?

0 Answers  


How can you handle errors in Web API?

0 Answers  


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,






Can you explain autopostback?

0 Answers  


Describe the two main components of the .NET framework ?

2 Answers  


What events will occur when a page is loaded?

0 Answers  


Using shadow variable is good or bad for application?

1 Answers   Keane India Ltd,


How can we pass info between 2 asp.net pages?

0 Answers  


How to set/get parent page values in child page in asp.net

3 Answers   Wipro,


What is boxing? How we can use it?

4 Answers   Infosys, NIIT,


Categories