views:

72

answers:

1

Hi Everyone,

Can anyone please tell me the procedure to bring two images from different servers in Silverlight 2?

+1  A: 

If You have the url u can just set it to image controls.

img1.Source=new BitmapImage(new Uri(your_url_for_the_iamge)); //img1 is your image control

If you want to download them and then use you need to use WebClient class and one clientaccesspolicy.xml file should be present in the server from where you are donwloading the images and that xml file should grant you access to where your Silverlight application is.

Tanmoy
I'm guessing that faisal71 was hoping to actually WebClient the images in, so you're totally right here: the client access policy for x-domain requests would need to be in place in the 3rd party server(s).
Jeff Wilcox