I am using c# and aspx code behind to access the page. I can get some of the page using this:
Expand|Select|Wrap|Line Numbers
- HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
- request.Method = "GET";
- response = request.GetResponse();
- reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
- result = reader.ReadToEnd();
- Response.Write (result);
If Response.Write is the best way to do this I would like to have Response.Write write the output to a specific location (like a cell in a table) or a new popup window. I saw an example here to use:
[HTML]<span id="myLabel">
<% Response.Write "Some Text" %>
</span>[/HTML]
How do I get this to work when the “Some Text” needs to be generated and refreshed in the code behind section?
Thanks