473,796 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP - change values (color) in a repeater control

I have a repeater control in a asp.net app. Once the repeater is fill
with data (via bind) I would like to go through the repeater and
change the color of one of the items. I can get to where the item is
by looping through and seeing the contents of the
DataBoundLitera lControl. I tried updating the DataBoundLitera lControl
by adding <font> tags to change the color but
objCurrentRepea terItem.Control s(0) is read only.

So, how do you update an item in a repeater control to a different
color and/or value?

Please post code or a property that I can use!

Thanks!

Phin
Nov 18 '05 #1
1 2138
Figured it out from a previous post:

http://groups.google.com/groups?hl=e...change%2Bcolor

mr******@yahoo. com (mrwoopey) wrote in message news:<e4******* *************** ****@posting.go ogle.com>...
I have a repeater control in a asp.net app. Once the repeater is fill
with data (via bind) I would like to go through the repeater and
change the color of one of the items. I can get to where the item is
by looping through and seeing the contents of the
DataBoundLitera lControl. I tried updating the DataBoundLitera lControl
by adding <font> tags to change the color but
objCurrentRepea terItem.Control s(0) is read only.

So, how do you update an item in a repeater control to a different
color and/or value?

Please post code or a property that I can use!

Thanks!

Phin

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2739
by: anon | last post by:
I am having a hard time with makeing what I am trying to do work. I am making a questionaire web app. I have a custom control that has a label and 5 radio buttons. My problem is that each different topic for the questionaire is in a database and each questionaire will have a different number of questions. I am trying to use a repeater to creat multiple copies of the control, unfortunately when I do this the different controls act like...
0
1494
by: Sebastiao Pereira Filho | last post by:
When I bind a server control to a repeater it renders one copy of this control for each item in the datasource collection. By doing this it changes the name of the dynamically created controls, to ensure each name is unique. My problem is that the repeater control has a proprietary pattern to gererate this names and I'd like to use a pattern that's standard for my applications (and to my client-side scripts). I got to partially change...
2
2064
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP (non-.Net) if I wanted to fill a list it may look something like this: -------START CODE <%
5
7278
by: Darren Smith | last post by:
Hi There, I have a shopping cart app that displays products along with a textbox (to enter quantity) and an image button to add the item to the shopping cart. Please explain why my below Button_Click procedure does not retrieve the value of the textbox where the button was clicked. Thanks in Advance,
1
1317
by: Ryan Ternier | last post by:
I'm having the issue is when I re-bind my repeater to show the changes done to it from the code behind. I'm binding this repeater from a DataTable that is stored in the ViewState for now. It might change later, but that's where I'm gettting it from. I have an Image Button that allows users to move a Record Up one space (order).
5
3597
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label control and a WebForm label control, I could see that properties are different for
3
7842
by: renil | last post by:
I have a repeater control that displays info. from a datatable. Each row in the repeater has a checkbox. Also, I have a delete linkbutton outside the repeater control. What I'm trying to do when the delete linkbutton is clicked is get the SubscriptionID from the repeater control for each row in which the checkbox is checked, then call a delete function. (See the code for the .aspx and .aspx.cs below.) The problem I'm having is that I...
0
1357
by: sumithad | last post by:
hi all, can anyone help me in this? i had a repeater control associated with the database fields. also i had a check box control in that. if i click the checkbox i need to get all the values corresponding to the repeater. and had to display it in another repeater. plz help me in this it is urgent!!!!!!!!!!!! Thanks, sumitha
4
15493
by: Michael | last post by:
I have a repeater web control. Currently I want to change some row's color based on defined condition. Is there any code sample demonstrating how to accomplish it? Thanks.
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10201
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.