I am using the following code to place an image inside an imagebox in a WinForm application. The form has a listbox with people’s names. As the user selects a name the textboxes and imagebox shows the person’s details. The code provides the location/folder of the images and adds the ID number from the “ID textbox” followed by “.jpg” to complete the location.
WinForm Code:
peopleDetailsPhotoImg.Load(@”http://www.abc.com/OA/Photos/” + peopleDetailsIDTxt.Text + “.jpg”);
I need the same functionality within a new Silverlight application. I can’t figure how to code the same type of location. I need “folder location” + “textbox.text” + “.jpg”. Get errors with the formating when trying to use multiple ” ” and + marks within the location line.
The Silverlight app works fine using the listbox and multiple textboxes that fill as the user selects a name however the ability to use the location + ID + .jpg has me at a stand still!
Any help would be appreciated.
Brian
Try
String.Concat(@"http://www.abc.com/OA/Photos/", textbox.Text, ".jpg")