All Articles on ASP.Net - Page Interaction

Convert a relative url to an absolute url in an ASP.NET page

Posted 03 February 2010 - Category ASP.Net Sub Category Page Interaction

These functions will take a relative url and return the absolute url. The function ToAbsoluteUrlForced will force a protocol http or https. Useful when wanting to go back to http for instance after having a https login screen.

Creating a refresh meta header in the code behind to redirect to another page

Posted 31 January 2010 - Category ASP.Net Sub Category Page Interaction

This technique allows you to call up another page if for instance a certain condition is met. By delaying the call to this allows the existing page to be initially displayed. Could be used in a scenario where the status of something being processed on that page is wrong and you need to tell the user this and then direct them to another page, that will allow them to fix the status.

The virtual path '/UserControls/FormExtra.ascx' maps to another application, which is not allowed

Posted 29 March 2010 - Category ASP.Net Sub Category Page Interaction

This error occured when publishing a site but was working ok inside visual studio usage. The solution in this case is simple.

Find the calling client browser information and display in javascript alert

Posted 04 January 2010 - Category ASP.Net Sub Category Page Interaction

Choose from the right hand menu to see full lists within subcategories