Web Development / Programming

Getting The Current File Name in Vb.Net

Posted by on June 7, 2011 at 9:19 am

Some times you need to figure out what the actual file name is a the web page that you are on.  If this is the case, here is the easy way to do this in the code behind: Dim myPage As String = System.IO.Path.GetFileName(System.Web.HttpContext.Current.Request.Url.AbsolutePath) If you are on a page, myPage will have just the [...]

Changing ShowStartNode or StartNodeOffset For Sitemap In Code Behind

Posted by on June 7, 2011 at 9:15 am

Sometimes you may want to change the ShowStartNode or StartNodeOffset for your sitemap file when the page is loaded in vb.net. One example is if you are using the web.sitemap file to display an asp:menu on your page. There may be certain pages that you want to show from the starting node and other times [...]

Easy Javascript Image Swapping Function

Posted by on May 25, 2011 at 9:42 pm

Sometimes you just need a quick image swapping script so here is one you can use quickly.  You could always do this right inline too but why?  I want to use the same script over and over and want to be able to place the images anywhere so this is how I do this. Create [...]