I have a datatable where i got the image just like ~xyz.png and ~~~~~~phg.jpg
The ~ symbol depends upon how much image if 2 image then ~~~~~ or if 3 image then ~~~~~~~~ just like..
I want to show the split image in a webform using stringbuilder.
How to split by using for loop ???
Here is my Code:
DataTable dt = objDash.ProductList();
for (int i = 0; i < dt.Rows.Count; i++)
{
string hidImg = dt.Rows[i]["Picture"].ToString();
string[] data = hidImg.Split('~');
html.Append(" }
How to check data[8] or data[6] or data[0] value present???
If i am using
//foreach (var item in data)
//{
// // if(data[i]!=null)
// if (!string.IsNullOrEmpty(item))
// {
// html.Append("
");
// }
//}
Then all the image are showingI want:
If i have 3 images in multiple jquery uploder(or database) then only one pic i.e. 1st pic show in webform not all of
Ifour HirenPosted Nov 3, 2016, 2:38 AM
above code helps you to make it working.
Midhun TpPosted Aug 16, 2016, 4:10 AM