c# - Xamarin: How to get HTML from page in WebView? -
xamarin: how html page in webview?
i develop xamarin app ios , using webview.
just html of page, use following code.
webclient wc = new webclient(); using (stream st = wc.openread("http://study-csharp.blogspot.jp/")){ using (streamreader sr = new streamreader(st, encoding.utf8)){ string html = sr.readtoend(); console.write(html); } }
however, want html data after user has logged in site in webview.
i can't find method html in uiwebview.
thanks in advance.
you can use javascript webview.evaluatejavascript ("document.body.innerhtml")
Comments
Post a Comment