Welcome Guest Search | Active Topics | Sign In | Register

What will be the Equivalent Code for EO WebBrowser Options
Himanshu
Posted: Sunday, March 26, 2017 9:03:50 AM
Rank: Newbie
Groups: Member

Joined: 3/26/2017
Posts: 2
Hi,

What will be the equivalent code for EO.WebBrowser
I am unable to find the e.URL.Host and e.URL.Query property in EO.WebBrowser

Code: C#
//IE Web Browser Code 
 private void WebBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
        {
            if (e.Url.Host == _dummyHost)
            {
                NameValueCollection query = HttpUtility.ParseQueryString(e.Url.Query);
                _Verifier = query["verifier"];
                Id = query["Id"];
                WebBrowser1.Navigate("about:blank");
            }
        }


Code: C#
//EO.WebBrowser Code 
 private void webView1_UrlChanged(object sender, EventArgs e)
        {
            if (?.... == _dummyHost)
            {
                NameValueCollection query = HttpUtility.ParseQueryString(????...);
                _Verifier = query["verifier"];
                Id = query["Id"];
               webView1.Url = "about:blank";
            }
        }


How to achieve the code written in IE WebBrowser using EO.WebBrowser

Thanks,
Himanshu
eo_support
Posted: Sunday, March 26, 2017 12:25:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

You just create an Uri object from WebView.Url. It will be something like this:

Code: C#
Uri uri = new Uri(webView1.Url);
if (uri.Host == _dummyHost)
{
  ....
}


Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.