R
Randy
How do I get the contents of the HttpWebResponse to display in a web browser
(IE or browser control)? Here is a code snippet. The response ends up
being jscript with a window.open().
webRequest.Method = "POST";
buffer = new byte[urlExecute.Length - 1];
for (int i = 0 ; i < urlExecute.Length - 1 ; i++)
{
buffer =
(byte)Microsoft.VisualBasic.Strings.AscW(urlExecute.Substring(i,1));
}
webRequest.ContentLength = buffer.Length;
webRequest.KeepAlive = false;
webStream = webRequest.GetRequestStream();
webStream.Write(buffer,0,buffer.Length);
webResponse = (HttpWebResponse)webRequest.GetResponse();
Thanks for the help!
(IE or browser control)? Here is a code snippet. The response ends up
being jscript with a window.open().
webRequest.Method = "POST";
buffer = new byte[urlExecute.Length - 1];
for (int i = 0 ; i < urlExecute.Length - 1 ; i++)
{
buffer =
(byte)Microsoft.VisualBasic.Strings.AscW(urlExecute.Substring(i,1));
}
webRequest.ContentLength = buffer.Length;
webRequest.KeepAlive = false;
webStream = webRequest.GetRequestStream();
webStream.Write(buffer,0,buffer.Length);
webResponse = (HttpWebResponse)webRequest.GetResponse();
Thanks for the help!