As you probably know you can use the tilde sign (~) in ASP.NET to get the relative path of the root of your Web Site or Web Application. But unless using the Link Server Control or similar you may need some code to convert it to a correct url or get the absolute path. Using… Continue reading Get root path in ASP.NET without using Tilde ~
Month: March 2011
ASP.NET 4.0: Extra space above Menu in Chrome and Safari using Menu Control
In Visual Studio 2010 when creating a new ASP.NET Web Site or ASP.NET Web Application you get a shell for ASP.NET 4.0 web site with a menu using the ASP.NET 4.0 Menu Control. However in Google Chrome and Safari browsers the menu will show with some extra space above it. It took plenty of googling… Continue reading ASP.NET 4.0: Extra space above Menu in Chrome and Safari using Menu Control
Get URL without QueryString in .NET
To get the current Url without the query in VB.NET [code lang=”vb”]Request.Url.AbsoluteUri.Split("?")(0)[/code]