Read Response.write in another Page

Gopi picture Gopi · Jun 11, 2010 · Viewed 9.9k times · Source

I have a page www.senderdomain.com/sender.aspx, from which i need to write a string to another page in other domain www.receiverdomain.com/receiver.aspx

In sender.aspx i have written

Response.Write("Hello");
Response.Redirect(Request.UrlReferrer.ToString());

It gets redirected to respective receiver.aspx page, but I am not sure how to get the text "Hello" in receiver.aspx page. Can any pl help on this?

Answer

Pranay Rana picture Pranay Rana · Jun 11, 2010

pass data in query string because can not do like this

for example

   Response.Redirect(Request.UrlReferrer.ToString() + "?mytext=hello");

And in receiver page access querystring data, will resolve your issue.

use private algorithm like 

 string message = "hello";
 add 1 to each char so that hello become ifmmp

and on receiver side -1 from each char so it will be hello