Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data grid template column

Status
Not open for further replies.

lfc77

Programmer
Joined
Aug 12, 2003
Messages
218
Location
GB
I have a template column in my data grid :

<asp:TemplateColumn HeaderText=&quot;Number&quot;>
<ItemTemplate>
<a href='<%# &quot;actdeact_redirect.aspx?serial=&quot; + DataBinder.Eval(Container.DataItem, &quot;Serial&quot;) + &quot;&action=&quot; + DataBinder.Eval(Container.DataItem,&quot;Action&quot;)%>'>
<%#DataBinder.Eval(Container.DataItem, &quot;Serial&quot;) %>
</a>
</ItemTemplate>
</asp:TemplateColumn>

When I try to do a redirect in ItemCommand, I want to pass the value in my template column as a parameter, but nothing gets passed. I have tried to add a DataField to the template column, but it doesn't seem possible to do this.


Can anybody help me out with this?


Cheers,

lfc77

 
lf: see if faq855-4372 helps here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top