Redirection question

  • Thread starter Thread starter King Coffee
  • Start date Start date
Hi,

I thought I would ask before trying... to be sure.
If I change the BASE HREF TAG to say; <base
href="http://king.com/subdirect1/" will the
Response.redirect("~/default.aspx"); divert to
"http://king.com/subdirect1/default.aspx"?

Thanks,

King

The BASE HREF tag tells the *browser* that all relative links within
the document start from that specified BASE location.
Response.Redirect would provide a link to the browser generated on the
*server* and BASE HREF tag is ignored because it's a part of your html
layout. [~] points to the root of your ASP.NET application and
Response.Redirect should tell to browser http://..._app_root_ .../
default.aspx
 
Back
Top