First of all, I consider you want to have a small change in the scenario you have presented in the question i.e,
Quote:
Example person num(0010200) and image saved in folder is 00102000.jpg , if person num(01234) and image saved in folder is 01234.jpg
It should be either
-- person_num = 0010200 then image = 0010200.jpg
(note: 2 zeros at the end instead of 3 as stated in the question considering it to be a typo)
person_num = 01234 then image = 01234.jpg
-- person_num=0010200 then image = 00102000.jpg
(note: 1 more zero added at the end, same as question)
person_num = 01234 then image = 012340.jpg
(1 more zero added to at the end)
For the first case if you are saving the images as the same name as person_num you can use following code without any other logic added to it.
<itemtemplate headertext="Image">
<img src="<%# Eval("person_num","~/Images/{0}.jpg") %>" <br="" mode="hold"> </itemtemplate>
For the second case, you need just very simple change i.e,
<itemtemplate headertext="Image">
<img src="<%# Eval("person_num","~/Images/{0}0.jpg") %>" <br="" mode="hold"> </itemtemplate>
Please let me know if your requirement is something else.
Hope, it helps :)