What does ‘~’ mean in ASP.NET applications
The tilde (~) in front of URLs means that these URLs point to the root of your web application. Web developers are familiar with using relative paths for all links, including hyperlinks, images, and stylesheets, to be able to move around web pages collectively. In ASP.NET when using User controls the relative paths can be difficult to use. The typical solution to this is to use web-root absolute paths instead here, resulting in the hard-coded sub-directories that are common on ASP.NET sites. The correct solution to this problem is to use app-relative paths instead, which ASP.NET nicely makes possible through the use of the tilde (~) prefix. Instead of <a href=’/UC/Page.aspx’>, use <a href=’~/Page.aspx’ runat=’server’>. The same ~ notation works for images also, as long as you add runat=’server’. There is also a ResolveUrl method that allows you to use ~ in your own code, which is one possible way to get stylesheet paths app-relative. Refer Tilde: Reference the Application Root
How do I determine if the user clicked a ‘Submit’ button twice in the page?
Check out Andy Smith’s OneClick Control
Why am I getting the error: ‘Type ‘(OleDb or SQL)Connection’ is not defined.’
You get this error when you have not imported the following namespaces in your code in the aspx file: System.Data.SqlClient or System.Data.OleDb.
How to configure my project for debugging ASP Code?
Access the Project properties window. Select the Configuration Properties for debugging then in right Pane, under the debugger node select true for Enable ASP debugging.
What are the different exception-handling approaches that can be used in ASP.NET?
Using try, catch and finally block in the code Using the Error event procedures at the Page, Application or Global levels Using the Server Object’s GetLastError and ClearError methods