image - Use variable in src in asp.net -


i creating table , in every row of table need put different image depending on results retrieved database.

imagevariable=image1.jpg

<"table>     <"tr>      <"td>         <"img src=<%=imagevariable %>>      <"/td>     <"/tr> <"/table> 

however, when view results, image variable not converted actual value considered value itself, image link becomes htt://ritesh/imagevariable

instead want htt://ritesh/image1.jpg

please assist.

do thing this.

public static string imagevariable="image1.jpg" 

then write in <%=%> block


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -