repeater

Binding the DataSource of a repeater

I am using databinding to iterate through a recordset returned from the database, and one of those recordsets is a comma separated list of items - I'm trying to use a second repeater to display each of those items as a hyperlink. So far this is the code that I have: <asp:Repeater ID="myRepeater" runat="server" DataSource='<%# DataBinder...

If statement using a class within a repeater

Hello All, I am using c#.net I have a repeater and a ObjectDataSource (ObjectDataSource is created within the code behind). Within the repeater are two buttons (edit/delete). I need to system to either hide/remove these buttons if the user doesn’t have permissions to edit/delete. Repeater Code <ItemTemplate> ...

Why is FindControl not working with my repeater?

Hi all, I'm trying to change the visibility of a pair of server controls (specifically a LinkButton and Label) that are nested inside the ItemTemplate part of a repeater during the onclick event of the same LinkButton. I've actually already found a solution, but I don't understand why it works and not the way I was trying before. What ...

ASP.NET: Connection closing after repeater databinding

Hi, I recently changed the way the connection worked on my web app and now I'm facing something that I don't understand. I hava a page that call a function called "ItemGet" in the Page_Load and it work perfectly when there is no data in the first repeater (Repeater1). When I click on a button that reload the page with different data (I...

UserControl with Child Controls passed into a Repeater within the UserControl

I'm trying to achieve something along the lines of... UserControl (MyRepeater) <p>Control Start</p> <asp:Repeater id="myRepeater" runat="server" /> <p>Control End</p> Page <p>Page Start</p> <uc1:MyRepeater ID="MyRepeater1" runat="server"> <ItemTemplate> <p>Page Item Template</p> </ItemTemplate> </uc1:MyRepeater> ...

JQuery with dynamic content

If I had a div tag inside a repeater, and i want to add a jquery effect to every one of those div tags, how would that be done? <script type="text/javascript"> $(function() { //run the currently selected effect function runEffect() { //most effect types need no options passed by default var...

Paging with Jquery in ASP.NET

Hi, I want to implement paging in Repeater via JQuery. Is it possible? If yes, then how I achieve this? ...

checkboxes in repeater

Hi I have a repeater and an unbound checkbox in each item. I want to do something for items that are checked. but the problem is here! when I click on my button outside the repeater, just my page refreshes and nothing happens. these are my code : <asp:Repeater ID="Repeater1" runat="server" > <ItemTemplate> ...

ASP.NET DataGrid within a Repeater

I have a table that has two columns: CommunityID PersonID And A "People" table that has (among other things): FirstName LastName I would like to display a different DataGrid for each community, each datagrid having only the people that are part of that community. I would like to do this without using 4 seperate SqlDataSources. A ...

ASP.NET Repeater and DataBinder.Eval

Hello, I've got a <asp:Repeater> in my webpage, which is bound to a programatically created dataset. The purpose of this repeater is to create an index from A-Z, which, when clicked, refreshes the information on the page. The repeater has a link button like so: <asp:LinkButton ID="indexLetter" Text='<%#DataBinder.Eval(Container.DataIt...

How to use PagedDataSource.CopyTo (or otherwise work with the same data I'm sending to my Repeater)

I'm populating a Repeater with a PagedDataSource and after I populate that Repeater, I want to perform some other operations on the subset of data that makes up the page I'm sending to the Repeater (my CurrentPageIndex, PageSize=10). So my question is how to get at those 10 records? From reviewing MSDN, it looks like I should be able t...

ASP.NET - user-controls repeater

Hi All, I am building a Web Application for shopping cart using ASP.NET and I am new to ASP.NET. One of my close associate suggested me to use the user controls, repeater and master page for faster development of pages. Can you suggest me reading materials to quickly grasp its usage. Thanks to All. Regards, Justin Samuel. ...

Inject Index of Current item when binding to a repeater

I am binding a List<HtmlImage> to a repeater Its actually a nested repeater and the list is one of the properties that the parent repeater is binding to I want to spit out the index of the current dataitem into the id property of the <li> I've put a comment where I want the index to appear below I have the following: <asp:Repeater...

How can I display an image in a repeater or grid control?

I have around 200 images to be displayed on a page. The database only stores the path where image is located. Images themselves are stored in the application's folder. EG: d:/application/website/images/ I need to convert the original size image to a thumbnail image while displaying the thumbnail Is there any functionality to d...

How to FindControls in repeater control ?

I want to enable or disable 'ParticipateBtn' depending on EventStartDate. I am getting this error:Object reference not set to an instance of an object. <table> <tr> <td align="right" style=" font-weight:bold">Start Date : </td> <td><%# CheckEnability((DateTime)Eval("Event_Start_Date")) %></td> ...

Checkbox with AutoPostBack and OnCheckedChanged Event Fires Event when Page Loads

I have a checkbox in a repeater and it is bound to a data source where it sets the checkbox to checked or unchecked. The checkbox is set to AutoPostBack and has an OnCheckedChange event. The problem is that the event keeps getting fired when the page loads. I need it to only fire if the user makes a change. How do I do this? pr...

Real time 'price x quantity' calculator

Hi, I'm using ASP.NET and a Repeater control to display my data. The data I have is in stored in a List. How would I implement a simple calculator that is affected in real time? Would I have to use AJAX, or is it possible to do it client-side? I'd like the user to be able to change the quantity, with the new price being visible immedi...

Wrapping a list of Checkboxes in a Datalist or Repeater

Hi, I have a long list of checkboxes bound in a repeater is there a way of wrapping them so instead of having 1 long list wrapping it across 3 or 4 colouns side by side say 7 items long. Is it easier to do this with a repeater or a Datalist? Cheers Ste ...

Change text of a linkbutton in a repeater

I have a repeater which displays comments related to a post. I want to add some functionality where when the user click on the link it goes from: report this post to post has been flagged how do I access the specific lnkButton? Obviously in ItemDataBound this is easily done, but in the click method I'm not sure how I would do it. ...

asp.net In a repeater is it possible to call a public function from another class?

Say I have this repeater which makes use of a public function called Test in the code-behind. <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table> </HeaderTemplate> <ItemTemplate> <tr> <td><%# Eval("MyCol1")%></td> <td><%# Eval("MyCol2")%></td> <td><%# Test((int)Eval("MyCol1"))%></td> </tr> </Item...