Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > In Gridview Set Image Column programatically

Reply
Thread Tools

In Gridview Set Image Column programatically

 
 
EdwardH
Guest
Posts: n/a
 
      10-12-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gridview column values to another page via gridview hyperlink column Keith G Hicks ASP .Net 3 02-18-2008 06:17 AM
Problem Adding Column Programatically to GridView Kbalz ASP .Net 2 10-04-2007 04:49 PM
Determine if a Gridview column is readonly programatically Angel ASP .Net Web Controls 1 10-23-2006 06:56 PM
gridview row programatically set to edit mode =?Utf-8?B?R2VyaGFyZA==?= ASP .Net 2 09-29-2006 03:59 PM
How to invoke Edit mode in GridView when dataSource is set programatically? (ASP.NET 2.0) misiek ASP .Net 3 03-23-2006 10:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57