What you can do here add a column to Table1 that will hold the pagename that you link needs to point to as well as the image path that you want to load.
cId cName link imagePath
1 Myname south.aspx?cid= images/south_indian.gif
select cid, link+convert(varchar,cid) as link, imagePath from ......
this will geneerate a resultset as follows
1 MyName south.aspx?cid=1 images/south_indian.gif
Fill a dataset with this data bind to a repeater and use the repeater to create the links for you:
your Item template should look something like this:
<ItemTemplate>
<td><a href="<%# DataBinder.Eval(Container.
</ItemTemplate>
Resource on how to use a repeater control: http://www.devhood.com/vie
Main Topics
Browse All Topics





by: davrob60Posted on 2008-11-20 at 05:42:57ID: 23003495
<asp:HyperLink
NavigateUrl='<%# string.concat("south.aspx?