public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
webBrowser1.Loaded += webBrowser1_Loaded;
}
void webBrowser1_Loaded(object sender, RoutedEventArgs e)
{
var html =
"<html><body>hi there" +
"<"img src ='HTMLBasedWP7App;components\DummyImage.jpg'"\"/>" +
"</body></html>";
webBrowser1.NavigateToString(html);
}
}
This is the code i have used and DummyImage.jpg is not displaying.
only MainPage shows this message "hi there" and a broken image