In Gridview Set Image Column programatically

Discussion in 'ASP .Net' started by EdwardH, Oct 12, 2008.

  1. EdwardH

    EdwardH Guest

    In Gridview I have column representing Thumbnail image which works fine.:
    <asp:ImageField DataImageUrlField="PicFile1"
    DataImageUrlFormatString="Images/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 DataImageUrlFormatString?
    With thanks
    EdwardH, Oct 12, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. misiek
    Replies:
    3
    Views:
    47,117
    misiek
    Mar 23, 2006
  2. =?Utf-8?B?R2VyaGFyZA==?=

    gridview row programatically set to edit mode

    =?Utf-8?B?R2VyaGFyZA==?=, Sep 29, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    14,798
    =?Utf-8?B?R2VyaGFyZA==?=
    Sep 29, 2006
  3. Kbalz
    Replies:
    2
    Views:
    1,318
    Kbalz
    Oct 4, 2007
  4. Keith G Hicks
    Replies:
    3
    Views:
    734
    Keith G Hicks
    Feb 18, 2008
  5. Angel
    Replies:
    1
    Views:
    111
    Phil H
    Oct 23, 2006
Loading...

Share This Page