using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Reflection;
using System.Xml;
using System.Web;
///
/// Common utility functions.
///
public static class Util
{
///
/// Redirects to a path relative to the application base path.
///
public static void RelativeRedirect(HttpContext context, string relativePath)
{
string redir = context.Request.ApplicationPath + relativePath;
if (context.Request.ApplicationPath == "/")
{
redir = relativePath;
}
context.Response.Redirect(redir);
}
}