PC Review


Reply
Thread Tools Rate Thread

asp:repeater control in ASP.NET

 
 
=?Utf-8?B?T2xlZw==?=
Guest
Posts: n/a
 
      6th Feb 2004
I am using asp:repeater control. I would like to create a conditional row <tr> when the data in
DataBinder.Eval(Container.DataItem, "Activity") returns '1'.
I need something like this: <%if( Convert.ToString(DataBinder.Eval(Container.DataItem, "Activity")) == "1") { %>...<%}%
My attempts putting 'DataBinder.Eval(Container.DataItem, "Activity")' in 'if' statement were not successfull.
It seems like 'DataBinder.Eval(Container.DataItem, "Activity") ' works only with '#' perprocessor
How do I put my bound data in 'Repeater' control inside if statement
Thanks for your help
Oleg
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Initialization of a Web User Control inside Repeater Control satyajit Microsoft ASP .NET 2 21st Aug 2007 04:03 PM
Repeater control - how to access contained control values? dotnw@hotmail.com Microsoft ASP .NET 4 28th May 2005 08:54 AM
Repeater control with nested repeater chris.reed@digus.com Microsoft ASP .NET 0 11th Feb 2005 05:10 PM
Please HELP! Need to access textbox control values within a repeater control Darren Smith Microsoft ASP .NET 5 10th May 2004 04:37 PM
binding user control to repeater web control MeiMei Microsoft ASP .NET 0 20th Jan 2004 12:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.