multiline textbox size limitation?

Cableguy

Expert
Licensed User
Hi guys...I'm using a multilined textbox to see the html from a web page...
My problem is that the text returned to the textbox is not the complete webpage html code...
Is there any size limitation to how many characters a textbox can hold?
 

Erel

Administrator
Staff member
Licensed User
Yes, the native control is limited to 64k characters.
 

Cableguy

Expert
Licensed User
still, my page source is surelly under those 64k characters....it has 4071 characters acording to strlenght
 

Cableguy

Expert
Licensed User
Ok, so I discovered that the WebBrowser.documentText prop, set with the door dll so I could get the output, returned only a partial of the complete html text...(4071 characters)
using the http dll to get the http response, gets the full content of the page (5764 characters), any idea why?
In MSDN documentation both seem to do exactly the same, retrieve the html contents of a web page...so why the diferent results?
 
Last edited:

agraham

Expert
Licensed User
Is this a page loaded from the Web? If so are you sure the download is complete before you try to get the text?
 

Cableguy

Expert
Licensed User
I'm reading the tet on the NAVITD event, wich supposedly ocours after the age is completly loaded....
Should I use any other event??
The answer is YES!!!
I changed the event to DocumentCompleted and i got the hole html document...
Thanks agraham....
 
Last edited:

agraham

Expert
Licensed User
From MSDN
Navigated event ... Occurs when the WebBrowser control has navigated to a new document and has begun loading it.
Also from MSDN
When the DocumentCompleted event occurs, the new document is fully loaded, which means you can access its contents through the Document, DocumentText, or DocumentStream property.
 

Cableguy

Expert
Licensed User
s for the clarification, Andrew...
I'm trying to add a sendclick to a webpage button, I already can focus the control I want, providing it return a valid ID, or name, but I keep getting an error saying the the value "does not fall within the expected range"....
Any ideas?
 
Top