Find control from Footer template in Repeater control [Resolved]

Posted by Jaypalsinh under Regular Expressions on 7/7/2011 | Points: 10 | Views : 15941 | Status : [Member] | Replies : 2
Hi,
How to find the control from the Footer template in Repeater control?




Responses

Posted by: Sashys on: 7/7/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi,

Can you pls try some thing like this?

lablecontrol1 = Myrepeater.Controls[Myrepeater.Controls.Count - 1].Controls[0].FindControl("lablecontrol1");

Pls mark it as answer, if it works for you..

Sasikumar .M

Jaypalsinh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chvrsri on: 7/8/2011 [Member] [Moderator] [MVP] Silver | Points: 25

Up
0
Down
HI,

You can get all the items values using this code. Suppose you place a Label in your repeater ,

For Each item As RepeaterItem In repeaterGuidelines.Items
Dim lblActualDistribution As Label = item.FindControl("lblActualDistribution")
Next


From here
lblActualDistribution.Text
gives you the value in that control...

Thanks,
Radha Srikanth

Jaypalsinh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response