473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Retrieve data from nested repeater?

Does anyone know how I would go about doing this? I've tried numerous
things... but none seem to work. Here's some code of what I've done:

I'm trying to retrieve these label values:
Dim FVProdPartNum As Label =
CType(frmProduct.FindControl("lblProdPartNum"), Label)
Dim FVProdDesc As Label = CType(frmProduct.FindControl("lblProdDesc"),
Label)
Dim FVProdPrice As Label =
CType(frmProduct.FindControl("lblProdPrice"), Label)

Those labels reside in a nested repeater. I've also tried it without
the CType.

Any help would be much appreciated. Thanks!

Dec 14 '06 #1
1 1413

za******@gmail.com wrote:
Does anyone know how I would go about doing this? I've tried numerous
things... but none seem to work. Here's some code of what I've done:

I'm trying to retrieve these label values:
Dim FVProdPartNum As Label =
CType(frmProduct.FindControl("lblProdPartNum"), Label)
Dim FVProdDesc As Label = CType(frmProduct.FindControl("lblProdDesc"),
Label)
Dim FVProdPrice As Label =
CType(frmProduct.FindControl("lblProdPrice"), Label)

Those labels reside in a nested repeater. I've also tried it without
the CType.

Any help would be much appreciated. Thanks!
Here's the code I use to get the data source of the nested repeater if
that helps:

Private Sub rptCategory_GetData(ByVal Sender As Object, ByVal e As
System.Web.UI.WebControls.RepeaterCommandEventArgs ) Handles
rptCategory.ItemCommand
Dim dv As DataRowView = CType(e.Item.DataItem, DataRowView)
If (Not (dv) Is Nothing) Then
Dim nestedRepeater As Repeater =
CType(e.Item.FindControl("rptDetail"), Repeater)
If (Not (nestedRepeater) Is Nothing) Then
nestedRepeater.DataSource =
dv.CreateChildView("myRelation")
nestedRepeater.DataBind()
End If
End If

End Sub

Dec 14 '06 #2

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

Similar topics

0
by: mark | last post by:
My problem is I need to have a "nested" repeater. I have an array which I load into a hashtable - that part works great. I can setup the second repeater to work just fine, as long as it's not...
1
by: Maziar Aflatoun | last post by:
Hi, I have tried setting up a nested repeater control and it works fine. But when I do 3 level nested repeater it fails. Does anyone know a site or have an example of a three level nestest...
3
by: Eirik Eldorsen | last post by:
Im trying to make a nested repeater with 3 levels. I've successfully created a nested repeater with 2 levels, but when adding the 3rd level I get an InvalidCastException. What am I doing wrong? ...
7
by: charliewest | last post by:
Hello - I'm using a Repeater control to render information in a very customized grid-like table. The Repeater control is binded to a DataSet with several records of information. Within the...
1
by: Charlie | last post by:
Hi: I'm laying out a hieraracical report by nesting repeater controls. I'm using panels to expand/collapse detail sections. To access a panel in a nested repeater, I use the following code. ...
1
by: jeremystein | last post by:
With nested repeaters, how can I access the outer repeater's DataItem from the inner repeater? Here's a snippet from my aspx: <asp:repeater id="OuterRepeater" runat="server"...
1
by: humbleFunGuy | last post by:
What does nested controls mean in .Net? Any help is appreciated. Thanks, fanzi
0
by: sydney.luu | last post by:
Hello, I have a web page where I dynamically create a TABLE with rows and cells. I fill these cells with application data. As I am building the cell, I add it to a PlaceHolder, which is a...
4
by: =?Utf-8?B?SmFtZXMgR2V1cnRz?= | last post by:
On my page, I have one repeater that contains a literal control and a nested repeater. The nested repeater contains a literal control. Both repeaters are databound with only one object (string). ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.