Hi,
I have web browser control in my windows form and am
implementing the following event:
*************** *************** ***********
public void BeforeNavigate( string URL, int Flags, string
TargetFrameName , ref object PostData, string Headers, ref
bool Cancel)
*************** *************** ***********
When I navigate on an htm file and submit the data (form
with post method), what I see on PostData var is the
bytes in System.Array.
I tried the following code:
*************** *************** ***********
Stream s = (Stream)PostDat a;
Byte[] read = new Byte[32];
int bytes = s.Read(read, 0, read.Length);
string str = Encoding.ASCII. GetString(b);
MessageBox.Show (str);
*************** *************** ***********
But it complains that improper casting from object to
stream.
So, how do I convert this PostData to string in order to
see the actual data?
Please help. Thanks!
-CL
I have web browser control in my windows form and am
implementing the following event:
*************** *************** ***********
public void BeforeNavigate( string URL, int Flags, string
TargetFrameName , ref object PostData, string Headers, ref
bool Cancel)
*************** *************** ***********
When I navigate on an htm file and submit the data (form
with post method), what I see on PostData var is the
bytes in System.Array.
I tried the following code:
*************** *************** ***********
Stream s = (Stream)PostDat a;
Byte[] read = new Byte[32];
int bytes = s.Read(read, 0, read.Length);
string str = Encoding.ASCII. GetString(b);
MessageBox.Show (str);
*************** *************** ***********
But it complains that improper casting from object to
stream.
So, how do I convert this PostData to string in order to
see the actual data?
Please help. Thanks!
-CL
Comment