Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VisualStudio2012
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..
Frown | :(
Frown | :(
Damn Frustrated from last few days to resolve this issue
Help me out
!!
Thanks in Advance
Posted 24-Jul-12 5:26am
Comments
Mehdi Gholam at 24-Jul-12 11:35am
   
It's very hard to help you with the information provided.
Sergey Alexandrovich Kryukov at 24-Jul-12 11:42am
   
Who knows why if you don't know? Probably, you screw up something... :-) --SA
Member 9300064 at 24-Jul-12 11:42am
   
ok!!What kind of Info should I provide you?
Member 9300064 at 24-Jul-12 11:44am
   
I know the problem but don't know it's solution...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
Wes Aday at 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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 860
1 OriginalGriff 427
2 Abhinav S 303
3 thatraja 225
4 CPallini 208
0 Sergey Alexandrovich Kryukov 8,122
1 OriginalGriff 4,520
2 Peter Leow 3,744
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 24 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid