开发者

WEBBrowser Control; Is it possible to save the Webbrowser Content to a SQL DB?

开发者 https://www.devze.com 2022-12-08 20:03 出处:网络
开发者_如何学JAVACan the content of a webbrowser control in C# winforms be serialized for saving to a sql server db for retrieval and display? Would that be the route for saving and retrieving html co

开发者_如何学JAVACan the content of a webbrowser control in C# winforms be serialized for saving to a sql server db for retrieval and display? Would that be the route for saving and retrieving html content to and from a db?


Use the property WebBrowser.DocumentElement.innerhtml to get and set the webrowsers html. You could also save the html to a .htm file instead of the database and use the webrowser.navigate2 method. sometimes storing blobs in a database is a bad idea (performance).

0

精彩评论

暂无评论...
验证码 换一张
取 消