Table of Contents

Method NavigateToString

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

NavigateToString(string, string?)

Sets the displayed page source to the contents of the given string.

public virtual void NavigateToString(string html, string? baseUrl = null)

Parameters

html string

The string that contains the HTML data to display. If this parameter is null, WebBrowser navigates to a blank document. If value of this parameter is not in valid HTML format, it will be displayed as plain text.

baseUrl string

URL assigned to the HTML data, to be used to resolve relative paths, for instance.

Remarks

When using the IE backend you must wait for the current page to finish loading before calling this method. The baseURL parameter is not used in the IE and and Edge backends.