How to using variable to store Container.DataItem ?

  • Thread starter Thread starter kelvinweb
  • Start date Start date
K

kelvinweb

Hi All,

Is it possible to using variable store container.dataitem in
ItemTemplate ??
For example.

<ItemTemplate>
<%
Dim x
x = container.dataitem("LineNo")
if container.dataitem("LineNo") <> x then
.....
end if
%>
</ItemTemplate>

Please help.
 
Why don't you do it in your code behind using onItemDataBound?
Patrick
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top