Background VB:
If not newtable is nothing and newtable. Rows. Count> 0 then
Dim STR as stringbuilder = new stringbuilder ()
Str. append ("<Table border = '1' cellpadding = '0' cellspacing = '0' class = 'tbl' style = 'text-align: Center'> ")
For I = 0 to newtable. Rows. Count-1
If I mod 3 = 0 then
Str. append ("<tr> ")
End if
Dim path as string = newtable. Rows (I) (2). tostring. Replace ("~ ","..")
Str. append ("<TD> ")
Str. append ("<Table border = '0' cellpadding = '0' cellspacing = '0' width = '000000' class = 'tbl' style = 'text-align: center '> ")
Str. append ("<tr> ")
Str. append ("<TD style = 'height: 80px; text-align: Center'> ")
Str. append ("<input type = 'image' src = '.. \ image \ czuft.jpg 'onclick = ''style = 'height: 56px; width: 0000px '/> ")
Str. append ("</TD> ")
Str. append ("</tr> ")
Str. append ("<tr> ")
Str. append ("<TD style = 'height: 140px; text-align: center; '> ")
Str. append ("<input type = 'image' src = '" & Path & "'onclick ='' style = 'height: pixel PX; width: 80px'/> ")
Str. append ("</TD> ")
Str. append ("</tr> ")
Str. append ("<tr> ")
Str. append ("<TD style = 'height: 30px; font-weight: bold '>" & newtable. rows (I) (1 ). tostring () & "</TD> ")
Str. append ("</tr> ")
Str. append ("<tr> ")
Str. append ("<TD style = 'height: 30px; font-weight: bold '>" & newtable. rows (I) (3 ). tostring () & "</TD> ")
Str. append ("</tr> ")
Str. append ("<tr> ")
Str. append ("<TD style = 'height: 40px; text-align: Right; padding-Right: 10px; font-weight: bold '> NO. "& newtable. rows (I) (0 ). tostring () & "</TD> ")
Str. append ("</tr> ")
Str. append ("</table> ")
Str. append ("</TD> ")
If I mod 3 = 2 then
Str. append ("</tr> ")
Elseif I = newtable. Rows. Count-1 then
Str. append ("</tr> ")
End if next
Str. append ("</table> ")
Me. literal1.text = Str. tostring ()
Else
End if
Foreground aspx:
<Div runat = "server" id = "diviamge" style = "width: 660px; text-align: center; padding-top: 20px; padding-left: 300px">
<Asp: literal id = "literal1" runat = "server" text = "XXXX"> </ASP: literal>
</Div>