Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried to display images present in my solution by providing correct image source path and set all Images to "Content" .
still i am not able to see images while running Build on Emulator as well as Device.
What should I do?
What am I doing wrong?
How I get Images Displayed in my App?
Text in HTML is perfectly displayed but not images..
:(
:(
Damn Frustrated from last few days to resolve this issue
Help me out
!!
Thanks in Advance
Posted
Comments
Mehdi Gholam 24-Jul-12 11:35am    
It's very hard to help you with the information provided.
Sergey Alexandrovich Kryukov 24-Jul-12 11:42am    
Who knows why if you don't know? Probably, you screw up something... :-)
--SA
Khushi Wadhwani 24-Jul-12 11:42am    
ok!!What kind of Info should I provide you?
Khushi Wadhwani 24-Jul-12 11:44am    
I know the problem but don't know it's solution...

1 solution

XML
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
 
Share this answer
 
Comments
[no name] 24-Jul-12 12:04pm    
This is not a solution. Use the "Improve question" link to improve your question with additional information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900