User Repeater data control to bind these images and assign List<XElement> as data source to Repeater after filtering to get all BigPhotos. Here is a code snippet on similar scenario:
I appreciate your help, but i've already created a couple of html in my c# using StringBuilder and only the images are left, but here you are referring me to asp.net, please do you also know from behind the backend?
Sorry but I am unable to understand when you said about StringBuilder and couple of html in C#. Can you provide some details to understand the scenario where you required to add these images?
नमस्ते,
[KaushaL] BlogTwitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
i have my html code already, i used StringBuilder to create the html to show/display the empname, Dept etc. Now i must do the same with the images and i want to do that also with StringBuilder.
Member
15 Points
43 Posts
How do i loop through these images in my XML and place them in html <img> using StringBuilder in...
Apr 04, 2017 10:00 AM|tandohtakyie|LINK
I want it to search for the id and when it finds it, it must loop through the BigPhoto and display all the images that it can find.
I have this code
All-Star
31362 Points
7055 Posts
Re: How do i loop through these images in my XML and place them in html <img> using StringBuilder...
Apr 04, 2017 11:17 AM|kaushalparik27|LINK
User Repeater data control to bind these images and assign List<XElement> as data source to Repeater after filtering to get all BigPhotos. Here is a code snippet on similar scenario:
<asp:Repeater runat="server" ID="Repeater1"> <ItemTemplate> <asp:Image ImageUrl='<%# "~/Images/" + Eval("Value") + ".jpg"%>' runat="server" /> </ItemTemplate> </asp:Repeater>
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
15 Points
43 Posts
Re: How do i loop through these images in my XML and place them in html <img> using StringBuilder...
Apr 04, 2017 12:42 PM|tandohtakyie|LINK
I appreciate your help, but i've already created a couple of html in my c# using StringBuilder and only the images are left, but here you are referring me to asp.net, please do you also know from behind the backend?
All-Star
31362 Points
7055 Posts
Re: How do i loop through these images in my XML and place them in html <img> using StringBuilder...
Apr 04, 2017 01:02 PM|kaushalparik27|LINK
Sorry but I am unable to understand when you said about StringBuilder and couple of html in C#. Can you provide some details to understand the scenario where you required to add these images?
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
15 Points
43 Posts
Re: How do i loop through these images in my XML and place them in html <img> using StringBuilder...
Apr 04, 2017 01:22 PM|tandohtakyie|LINK
i have my html code already, i used StringBuilder to create the html to show/display the empname, Dept etc. Now i must do the same with the images and i want to do that also with StringBuilder.
All-Star
31362 Points
7055 Posts
Re: How do i loop through these images in my XML and place them in html <img> using StringBuilder...
Apr 04, 2017 01:32 PM|kaushalparik27|LINK
Use Loop:
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
15 Points
43 Posts
Re: How do i loop through these images in my XML and place them in html <img> using StringBuilder...
Apr 04, 2017 01:43 PM|tandohtakyie|LINK
thank you very much