ItemDataBound text modification question

Tech-Archive recommends: Fix windows errors by optimizing your registry



I've got a repeater that's bound to a datareader and I'd like to
conditionally modify the text that is being outputted. Previously, I've done
this by assigning a name to attribute to the surrounding tablecell in which
the <%# %> tags reside and I could use the findcontrol to grab a handle to
the control by name and do any necessary modifications. I'm wondering if I
can get around this? Is it necessary to assign a name to a surrounding cell?
What if I'm not using a table? I tried to use e.item.controls(0), but this
does not seem to correspond with all available controls that get databound (I
guess it excludes non web-server controls like simple client side tables),
but there seems to be only one element of type "DataBoundLiteralControl." I
was guessing that this represented the text that was between the databinding
tags, and hoped that I could modify the text property to add some text in,
but it's a read only property. To sum it up, two questions:

1, what is the DataBoundLiteralControl actually used for? What does it
represent?

2, Is there a way to do what I'd like to do? To modify the text that is
bound, without using findcontrol? (The control has no name, it's just the
contents of the <%# %> tags.

Thanks...
.



Relevant Pages

  • ItemDataBound text modification?
    ... conditionally modify the text that is being outputted. ... the control by name and do any necessary modifications. ... tags, and hoped that I could modify the text property to add some text in, ... what is the DataBoundLiteralControl actually used for? ...
    (microsoft.public.dotnet.general)
  • Re: MS Project Backend?
    ... Personally to me the best way to have corrupted data is to modify Project's ... data without any control, i.e. without opening Project. ...
    (microsoft.public.project)
  • Re: Need a lead for layout change in mde, if possible - Thanks
    ... The main intention is to somewhat give the user an option to modify the ... Then the report should print using this new location. ... > operations and those are not available for reports in an MDE. ... the coordinates of each control on the report would be based ...
    (microsoft.public.access.reports)
  • Re: Source Control
    ... Most of us do not modify the Public folders, so we don't run into that ... As far as version control goes, ... files and .dll's) how do you handle Microsoft updates, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: version/source control in datawarehouse project
    ... SSAS ans SSRS files under a source control system like visual source safe very easily. ... you can use configuration files to store your database connections. ... each folder will contains SQL scripts which modify the database and each developer as to apply the patches on his own environment. ... There is no server or desktop in our company. ...
    (microsoft.public.sqlserver.datawarehouse)