I need to call the Response.Redirect method with C #, but I need to do it in such a way that it ignores the Hosts for Windows file for this call?
For example, if on Hosts I:
127.0.0.1 google.com
and I call Response.Redirect ("google.com"), I need it to ignore the hosts for that one call only and actually go to google.com and not localhost. How can i do this?
I know I can call Response.Redirect to google ip address, but is there a better way?
Glory source
share