473,493 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

extract controls of a repeater template at runtime.

hi.

is there a way to access the controls of a repeater template at
runtime? i tried the GetFields method to extract all the controls of
the repeater as FieldInfoArray but that array contails only ITemplate
objects. i want to do this before i call the bind of the repeater so
items are not available.

kind regards

volkmar

Jul 14 '06 #1
4 1339
can use findcontrol method.

--
---------------------------
Thanks,
Ibrahim

"volkmar rigo" wrote:
hi.

is there a way to access the controls of a repeater template at
runtime? i tried the GetFields method to extract all the controls of
the repeater as FieldInfoArray but that array contails only ITemplate
objects. i want to do this before i call the bind of the repeater so
items are not available.

kind regards

volkmar

Jul 14 '06 #2
the problem is, that i don't know the names of the controls. i want to
create a method that extracts all the labels of a given page
(including the labels in the repeater controls) and extracts all the
texts to a text file.

Ibrahim Shameeque schrieb:
can use findcontrol method.

--
---------------------------
Thanks,
Ibrahim

"volkmar rigo" wrote:
hi.

is there a way to access the controls of a repeater template at
runtime? i tried the GetFields method to extract all the controls of
the repeater as FieldInfoArray but that array contails only ITemplate
objects. i want to do this before i call the bind of the repeater so
items are not available.

kind regards

volkmar
Jul 14 '06 #3
you have to use recursion, as each control can have children controls.

-- bruce (sqlwork.com)
"volkmar rigo" <vo**********@acs.itwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
the problem is, that i don't know the names of the controls. i want to
create a method that extracts all the labels of a given page
(including the labels in the repeater controls) and extracts all the
texts to a text file.

Ibrahim Shameeque schrieb:
>can use findcontrol method.

--
---------------------------
Thanks,
Ibrahim

"volkmar rigo" wrote:
hi.

is there a way to access the controls of a repeater template at
runtime? i tried the GetFields method to extract all the controls of
the repeater as FieldInfoArray but that array contails only ITemplate
objects. i want to do this before i call the bind of the repeater so
items are not available.

kind regards

volkmar


Jul 14 '06 #4
i tried that. but the children of a repeater control are
CompiledTemplateBuilder-objects (ITemplate) and there stops
my recursion...
bruce barker (sqlwork.com) schrieb:
you have to use recursion, as each control can have children controls.

-- bruce (sqlwork.com)
"volkmar rigo" <vo**********@acs.itwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
the problem is, that i don't know the names of the controls. i want to
create a method that extracts all the labels of a given page
(including the labels in the repeater controls) and extracts all the
texts to a text file.
Jul 14 '06 #5

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

Similar topics

0
3282
by: hendrik.vanniekerk | last post by:
Hi I'm using a repeater control doing databinding to an array at runtime. I have created a Template class for creating Headertemplate Itemtemplate etc. creating databinding at runtime. It...
1
1747
by: .Net Newbie | last post by:
I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a text-editor called EditPlus without access to the VS.Net...
8
4262
by: Invalidlastname | last post by:
Hi, We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
3
2037
by: Kelly Leahy | last post by:
I'm using an Asp:Repeater control with a text box in the item templates. This is for a system that has a number of items that the user can edit and I'd like to generate them based on a list. ...
4
2041
by: John Holmes | last post by:
I'm using data to rename some web controls on a form that uses a repeater contol and so it can have mulitple instances of the same control set. The controls get renamed (thanks to Steven Cheng's...
0
1188
by: Charlie | last post by:
Hi: I'm using the Repeater control to display one-to-many relationship between Customer, Orders and Order Items. To do this, I bind the control to Customer table to show customer data, then...
4
4045
by: Brent | last post by:
My SQL might generate a result like this: Security 2005-06-30 2005-03-31 2004-12-31 IBM $65 $100 $123 (etc) or like this: Security 2005-06-30 2005-03-31
2
2625
by: AC [MVP MOSS] | last post by:
I have a repeater with a header, footer, and item template. The item template is the only one with server controls (hyperlinks, labels, and a nested repeater). Within the top repeater, I'm handling...
2
8144
by: Nathan Sokalski | last post by:
I am write a CompositeControl, and one of the controls being included is a Repeater. This is my first time including a templated control in a control other than a UserControl. I am not sure how to...
0
7157
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,...
0
7195
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...
1
6873
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...
0
7367
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...
0
5453
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,...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
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 ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.