I want server.transfer to transfer the control to a different website other than the one I am in currently. Is that possible.
One way I thought of doing is to read the contents of that website and write in the response but would love to know if any other way to do so.
My website is http://www.xyz.com/otherwebsite/forms/page.aspx
So in above url, http://www.xyz.com is a website and otherwebsite is also a website and I want to do server.transfer from otherwebsite to http://www.xyz.com
you have couple choices..
Server.Transfer – does a transfer w/out notifying the browser. so your browser will still see the first website in the address bar.
Response.Redirect- tells the browser to go to another site. The behavior will seem similar to the user. transfer is faster because of less round trips, but most likely not what you want due to the address bar issue..
you could also configure IIS to redirect particular address,
really depends on your requirements…