Hi
I have a code that i get a value from a text box in the web page and i want to display the result in another web page. how do i do it?
the code is below:
string key = "aaaa";
string isbn = TextBox1.Text;
string sUrl = ("https://api.bookshare.org/book/isbn/" + isbn + "/format/json?api_key=" + key);
if (IsPostBack)
{
WebRequest request = WebRequest.Create(sUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
reader.Close();
dataStream.Close();
response.Close();
}
appreciate a reply
thanks