how to avoid writing this page load code in all pages of application ? can we write this in global.asax file?
protected void Page_Load(object sender, EventArgs e)
{
Session["prevUrl"] = Request.Url;
string PreviousUrl = Session["prevUrl"].ToString();
}