dynamic product = new JObject();
foreach (PropertyImage tbl in LST)
{
product.FullImage = SiteUrl + "/" + tbl.Photo;
product.imageThumb = SiteUrl + "/" + tbl.Photo;
product.description = tbl.Tag;
product.Address = Address;
product.imageid = tbl.OrderNumber;
product.TextColor = "White";
if (Photos != "")
{
Photos += "," + product.ToString();
}
else
{
Photos += product.ToString();
}
}
//Json += Photos;
// Json += "]";
var json = JsonConvert.SerializeObject(Photos, Formatting.Indented); ;
"{\r\n \"FullImage\": \"http://localhost:57226/img/image1.JPG\",\r\n \"imageThumb\": \"http://localhost
:57226/img/image1.JPG\",\r\n \"description\": \"Kitchen\",\r\n \"Address\": \"Test\",\r\n \"imageid
\": 1,\r\n \"TextColor\": \"White\"\r\n},{\r\n \"FullImage\": \"http://localhost:57226/img/image1.JPG
\",\r\n \"imageThumb\": \"http://localhost:57226/img/image1.JPG\",\r\n \"description\": \"Bedroom\"
,\r\n \"Address\": \"Test\",\r\n \"imageid\": 1,\r\n \"TextColor\": \"White\"\r\n}"
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.