Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Repeater question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Joern Schou-Rode, post: 3699220"] The ASP.NET idiosyncratic way of solving this task would probably be: 1. Declare a Literal control within the body of your Repeater markup. 2. Attach a new method to handle the ItemDataBound event of the Repeater. a) Read data from e.Item.DataItem and do the computations and comparisons needed to build the string you want to display. b) Use e.Item.FindControl("myLiteral") to get a reference to the literal control, cast it, and assign its new Text value. This might not be the simplest way to solve the task, but I believe this is how you supposed to do it in ASP.NET :-) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Repeater question
Top