How to display images from Picture library in GridView? RRS feed

  • Question

  • I have some images in my picture folder and I want to display them in the gridview. I have turned on the Picture Library capability.

    I am trying to set the img elements src path to "C:\\Users\\xxxx\\Pictures\\R0010816.JPG". But, the application crashes, by giving the following error:

    'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'.

    Exception was thrown at line 9428, column 9 in ms-appx://microsoft.winjs.1.0/js/base.js0x80004004 - JavaScript runtime error: Operation abortedThe program '[10892]

    WWAHost.exe' has exited with code 0 (0x0).

    If I change the src url to a relative one like imges/rrr.jpg, then it works. Could someone please let me know how to use the Picture Library's path with GridView?

    Friday, October 19, 2012 5:52 PM


All replies