slash(/) vs tilde slash (~/) in style sheet path in asp.net
问题 How these 2 paths are resolved in asp.net. why these 2 gives different path. At what time we need to go for these. <link href=\"/common/black_theme/css/style.css\" rel=\"stylesheet\"> (this is working) <link href=\"~/common/black_theme/css/style.css\" rel=\"stylesheet\"> (this is not working) As per my knowledge ~ represents root directory of the application \"Common\" is the folder under root of the website(named testsite.demo) in IIS physical path = D:\\Physicalpath\\WarpFirstSite\\testsite