Redirection question

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top