|
-
Sep 20th, 2004, 04:11 AM
#1
Thread Starter
Junior Member
Repeater question
Dear all,
There are three columns in my dataview, "code", "amount_1" and "amount_2". Now I am using a Repeater to display the data in the dataview and what I need to do is when the paramters "ind" = 0, display "amount_1", otherwise display "amount_2", and my code is:
......
<ItemTemplate>
<%
If Request.QueryString("ind") = "0" then
Response.Write(DataBinder.Eval(Container.DataItem,"amount_1")
Else
Response.Write(DataBinder.Eval(Container.DataItem,"amount_2")
End If
%>
</ItemTemplate>
........
But I got an error "BC30451 'Container' not declare....", anyone know whats wrong in my code since I'm new in ASP .NET
Regards,
Calvin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|