repeater

Empty rows in data repeater

I have a page when creates a new order of which you can add multiple line items. A line item is a contained user control with 4 input fields. when the user fills in the line items they can click a link button which will add a new line item to the "repeater" its only when they click save order (saving the order header and all line items i...

binding array to Repeater in Detailsview control

Is there any way to bind below object to the DetailsView with a repeater control as one of the items in item template: Name, address and age binds, but I can't get others to bind. I am able to set the source of repeater control to the Array (DataSource = '<%# DataBinder.Eval(Container.DataItem, "FriendArray")%>') in the markup. The data...

Repeater pagination with checkboxes issue

I have a repeater that displays data from database, each item has a checkbox that are used to "mark" items for deletion and etc. (there is no item in database for chekbox!). Because I use pagination (on data access and presentation levels), there is no way to preserve checkboxes values between page movements. How can I solve this issue...

Get Repeater's Items

I am trying to get all repeater's selected checkboxes of repeater's item just before page movement (pagination), and store them in some place. foreach (RepeaterItem ri in rpt.Items) { CheckBox box = (CheckBox)ri.FindControl("chkBox"); if (box.Checked) { ... } } The problem is where do ...

C# Repeater.DataSource from 2 StringCollections

I have 2 StringCollections: StringCollection ParameterIDs StringCollection ParameterValues Is it able to map these both StringCollections as DataSource, something like: repeater.DataSource = ParameterIDs (as row1) + ParameterValues (as row2); repeater.DataBind(); and use them in repeater like: <asp:Repeater ID="rep...

Repeaters and DataItems

I am trying to bind a Linq to Sql object to a Repeater object and then update my DataSource. My question is, can binding persist, or do you have to use the CommandArgument to retrieve the record and FindControl to get the updated values everytime? If the former is the case, will someone please provide an example? ...

ASP.net list of dropdownlists - similar to Access continuous form

Hi there, What I'm looking for is a way to mimic the MS-Access style continuous form within asp.net. In one particular case, I want a control, bound to a datasource which returns a dropdownlist for each row, bound to the value within the datasource. Any change to any of the dropdownlists' would perform an update to the database insta...

How do I get the Data from the textboxes within the gridview, nested in the repeater?

Hello All... I tried posting this before with only text...there was only one response the suggested I update onblur..which didn't seem like the best route as there could be a considerable amount of records: I have the following Gridview built during a repeater ItemDataBound event: '> <asp:GridV...

Why Repeaters in ASP.NET?

I'm a Ruby on Rails / PHP guy, and my company got me to work with ASP.NET. It's not too bad, I'm glad to learn a new language but since I started working with this technology everyone is bothering me about Repeaters. The thing is that I totally fail of seeing the point: what make using a repeater better than just displaying things in a ...

How do I use Eval() to reference values in a SortedDictionary in an asp Repeater?

I thought I was clever to switch from the memory intensive DataView to SortedDictionary as a memory efficient sortable data structure. Now I have no idea how get the key and value out of the datasource in the <%# or Eval() expressions. SortedDictionary<int, string> data = RetrieveNames(); rCurrentTeam.DataSource = data; rCurrentTeam.Da...

Controlling ASP .Net repeater control output height

Hi, I'm currently implementing an RSS feeder control for a website. I'm planning to allow a limit of 10 items to be displayed on the homepage using a repeater control. My question is how do I prevent the height of the control exceeding a certain dimension? I cannot guarantee how much content will be provided per RSS feed item. One op...

Exceptions to page size when paging hierarchical data

I have a webpage that displays a very large list of data. Since this was bogging down the browser, I implemented paging (using a PagedDataSource) to display 20 Marbles at a time. My data model is such that a Bag contains multiple Marbles, and on my repeater I show a little header for the Bag information then all of the Marbles undernea...

Refreshing a Repeater control in an UpdatePanel with ASP.NET

I'm trying to code a page where you can post a comment without reloading the whole page. The comments are displayed using a Repeater control. The template looks like this: <asp:UpdatePanel runat="server" ID="commentsUpdatePanel" UpdateMode="Conditional"> <ContentTemplate> <!-- Comments block --> <div class="w...

Passing Container.Eval to (Html.ReaderPartial) inside ASP.NET Repeater Control

I am trying to pass Eval to Html.RenderPartial inside ASP.NET Repeater but it does not work can any one help? <asp:Repeater runat="server"> <ItemTemplate> <% Html.RenderPartial("UserControl1",Eval("Title")); %> </ItemTemplate> </asp:Repeater> by the way I know that I can do it in other ways but ...

How can I obtain a reference to a control created inside a repeater?

I have one control named thumbviewer inside repeater. I want to set its imageurl in code. Currently it's done in aspx itself as <asp:Repeater ID="Repeater1" runat="server" > <ItemTemplate> <span style="padding:2px 10px 2px 10px"> <bri:ThumbViewer Id="Th1" runat="s...

Is it possible to retrieve property names from a databound item?

Hi SO, I have this code-behind that checks each item in a repeater when it is databound to see if the author/date are empty (either no author/date, or the system is set to not display them) so that way I can clear out their respective labels. This is so I dont get something like "Posted By on" when there is not author and/or date specif...

Is it possible to list all the expressions from DataBinder.Eval()?

I have a Repeater that is databound to a SQL database. To access the information I do the following: string Author = (string)DataBinder.Eval(e.Item.DataItem, "Author"); There are other properties (expressions? as intellisense puts it) that I need to access, but I am unsure of what their names are. Can I loop through the e.Item.DataIte...

What is the best way to bind a repeater to an AJAX response?

I am trying to bind a repeater after an AJAX response. Step 1 : Make an Ajax call to the fucntion in the code behind: Step 2 : Do some business logic and finally bind the data to the repeater Step 3 : Get the response back from the codebehind to the Ajax call Step 4 : Once we get the response back what is the right way to strip out extra...

ASP.NET Nested Repeater Accessing elements

I have a list of Accommodation objects bound to a Repeater, and then a nested Repeater which has the various attendee groups listed [e.g. Default, Seniors, Juniors]. This is all output fine, with the values displayed as LinkButtons, which when clicked gets sent to a code-behind event handler. Here is an example of the output to give you...

Select DropDownList item inside of a Repeater control

I have a repeater that contains a few items and among them there are a DropDownList and a Button. The goal here is to associate an item from the DDL with the selected repeater row. ASPX Code: <asp:Repeater ID="sharedPlansList" runat="server" onitemdatabound="sharedPlansList_ItemDataBound" onitemcommand="sharedPlansList_ItemCo...