Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Why does an Equals component return True when comparing different URLs from a WebBrowser control?

Updated on February 13, 2017

Passing the URL property of a WebBrowser control to an Equals component returns True when the URL differs from the value contained in the Equals component.

The type of a WebBrowser.Url is System.Uri. When comparing URLs (the string entered inside the Equals component is automatically converted to the type of the input, if possible), anchor tags are ignored along with everything after the #.

For example, URLs with these values are considered equal:


This also works with Bing or any other site if you add an octothorpe (#) to the end of the URL.

To make this work as you would expect, call the ToString() method on the WebBrowser.Url using the component property inspector.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us