title: Getting the page url in OnPreRender Event in asp.net
body: <p>I just ran into a problem. Before I was getting the URL of the Page in Page_Init method. Now to load the css based on the page in the URL, I had to shift the method into the OnPreRender event. </p>
  
  <blockquote>
    <p>HttpContext.Current.Request.RawUrl</p>
  </blockquote>
  
  <p>But when I do so I m not able to get the page url. All I get is "Page-Not-Found.aspx".
  Is there a way to get the URL in OnPreRender Method?
  Thanks</p>