In Gridview Set Image Column programatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RWR3YXJkSA==?=

    #1

    In Gridview Set Image Column programatically

    In Gridview I have column representing Thumbnail image which works fine.:
    <asp:ImageFie ld DataImageUrlFie ld="PicFile1"
    DataImageUrlFor matString="Imag es/A009/Thumbs/{0}">
    </asp:ImageField>

    I want the fixed 'A009' to be replaced by Session variable - "ClCode"

    VB in code-behind I have:
    iPicFile = ImageString & Session("ClCode ") & "/Thumbs/{0}"
    How can "iPicFile" variable be used in DataImageUrlFor matString?
    With thanks
Working...