Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How do I assign a variable to a container.dataitem in repeater control

Thread Tools

How do I assign a variable to a container.dataitem in repeater control

Chumley the Walrus
Posts: n/a
I need to assign a variable to a record drawn from a db by way of a
repeater control:

<ASP:Repeater id="thedata" runat="server">

<%dim display

display = Container.DataItem("displaygroup") %>

<%# Container.DataItem("displaygroup")%>


the display = Container.DataItem("displaygroup") does not work (error:
Name 'Container' is not declared.), and i need to find a way to assign
what's in <%# Container.DataItem("displaygroup")%> a variable

Reply With Quote

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
assign JavaScript variable to Java variable problem in JSP Matt Java 8 01-25-2010 04:48 PM
How to Assign JavaScript variable to Jsp Variable Ranjan ASP .Net 1 04-10-2007 03:35 PM
assign a struct variable into another struct variable C++ 18 07-22-2005 04:08 PM
Assign a name to a pointer variable from another variable Nmishra C Programming 3 05-24-2004 03:57 PM