I create this html page with this code and open it in the browser, the page should have a picture, but it doesn’t exist, how can I fix the problem. There is a picture in the xap file.

string html = `"<html><body><img src=\"Maps/Lenina_0.png\"></body></html>"`; myBrowser.NavigateToString(html); 

    1 answer 1

    why unnecessary apostrophes ( ' ) in the code:

    string html ='"<html><body><img src=\"Maps/Lenina_0.png\"></body></html>"'; ?


    It should be like this: string html ="<html><body><img src=\"Maps/Lenina_0.png\"></body></html>";


    or so: string html ='<html><body><img src="Maps/Lenina_0.png"></body></html>';