Ask a Question related to ASP.NET General, Design and Development.
-
Sebastiao Pereira Filho #1
Change repeater name pattern
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 the name generation by creating a control that
inherits from the repeater and overrinding the UniqueID property and the
InitializeItem method. But it only changes the contents of the name
generation, not the pattern itself.
Here is an example:
Putting a ASP:LABEL control into the repeater's ItemTemplate section and
naming it "lblREP", it renders like the following:
<span id="repFM__ctl2_lblREP">Test REP Label</span>
<span id="repFM__ctl3_lblREP">Test REP Label</span>
....
This name pattern has 3 basic sections: The name of the repeater, the
constant "ctl" followed by an enumerator and the control's original name. By
doing like I told, I can only change the contents of each one of this
sections, but not change the pattern
I would like it to render like this:
<span id="lblREP2">Test REP Label</span>
<span id="lblREP3">Test REP Label</span>
Anyone has any ideia of what I need to do to get this kind of result?
Thanks in advance!
Sebastiao Pereira Filho Guest
-
Change color and pattern for 3D object
I'm quite new with Director and Lingo and now I have a problem working with 3D object. My question is, Is it possible to change color and pattern... -
behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2?
String#gsub(pattern) {|m| ... } It really would be nice to get match data in 'm', but this would surely break _a lot_ of scripts. How about... -
behaviour change of String#gsub(pattern) {|m| ... } for ruby1.9/ruby2?
Hi -- On Fri, 21 Nov 2003, Florian Gross wrote: I've also just noticed this: irb(main):001:0> "abc".gsub(/((x?)abc)/) {|n,m| p n, m}... -
Repeater: Data Depended Format Change
I would like to change the format of a cell depended on the value of the data. I wrote the following script, which works fine. .. . . Function... -
How to change the color of a row (Repeater)?
Hi, I have 3 controls on a page. 1.- Dropdown (dd) 2.- Repeater (r1) 3.- Repeater (r2) The page works as follows. On Page load (not postback)...



Reply With Quote

