repeater

Paging with an ASP.NET Repeater?

I am making use of a ASP.NET Repeater. My Repeater is called myRepeater and I only want to display 20 items per page. Can this be done with a ASP.NET Repeater and if so what changes must i make to my code below? I want to be able to make use of paging.......... C# example is also fine!! ' Define data objects Dim conn As SqlConnec...

Using Telerik RadComboBox within a repeater

I have a repeater that contains a Telerik RadComboBox: <asp:Repeater ID="rpt" runat="server"> <ItemTemplate> <telerik:RadComboBox ID="rcb" runat="server" EnableLoadOnDemand="true" AllowCustomText="true" ItemRequestTimeout="1000" NumberOfItems="10" MarkFirstMatch="false"> </telerik:RadCombo...

Repeater control - Cancel bind for specific item

Hey everyone, Within a repeater control, is there a way of de-binding certain items before the page is rendered? Currently we have a collection of items being bound to a repeater and if the item is not part of the current language, we hide the item. I'm wanting to be able to do a count on the repeater and get a valid number back. A co...

Can We use AJAX Toolkit controls in ASP.NET Repeater Control

hi there, Can we use AJAX Toolkit Autocomplete control in ASP.NET Repeater Control. Can't we add it at runtime? ...

How to handle button clicks when using a repeater with a primary key formed by multiple columns

Hi, I need help on how to handle button clicks in an ASP.NET repeater's item when the record on which the item is based is identified by a primary key spanning multiple columns. The backgrounds: The page I'm talking about fetches a Complaint, which is an object with some properties, from the database and displays its properties to the ...

Accessing SiteMapNode Container.DataItem from outside of Parent Repeater.

Hi, I am trying to access the current 'active' top level node from a sitemap repeater from outside of the ASP.NET repeater used to render it, this is for CSS styling purposes as I want to place the child nodes on the subsequent row with different styling horizontally. At present I have the following code which I can't get to display cor...

Loop in code block on click argument.

Basically what i am trying to do is display a list of categories. And if the admin is logged in i want to show some buttons next to each category. For example a button to delete it. The problem is that i dont know how to pass a parameter to the function that does the action. Like i specify that on button click the function 'DeleteCat' ...

Bind dictionary to repeater

Hey, I have a dictionary object <string, string> and would like to bind it to a repeater. However, I'm not sure what to put in the aspx markup to actually display the key-value pair. There are no errors thrown and I can get it to work with a List. How do I get a dictionary to display in a repeater? Thanks Answer: I used this code in ...

How to repeat with repeater for 10 times the same code?

<asp:Repeater id="rptExcelField" runat="server"> <HeaderTemplate> <table style="width:100%;" id="mainTable"> </HeaderTemplate> <ItemTemplate> <tr> <td class="style1"> <asp:Label ID="lblField" runat="server" Text="Polje:" CssClass="textType"></asp:Label> </td> ...

.NET nested repeater - Button click calls OnItemCreated eventhandler, not OnItemCommand

I have a project with a simple nested repeater. When i click the button, the OnItemCommand event is not called but the OnItemCreated is called (however, it does not call the Page_Load event handler). What am I misssing? MARKUP <table width="100%"> <tr> <td>my row</td> <td>my description</td> </tr> <asp:Rep...

Tab index in flex repeater

I have a repeater which contains a text box and combo Box. I have set tab Index on both of them. When I navigate using the tab button on the keyboard it does not navigate in the correct order. Can you help me please. Thanx ...

Autocomplete jQuery on User Controller within Repeater .NET

I have a Multiview search feature on a Web User Controller that is called within a Repeater, OHMY!! I have some training sessions being listed out on a page, each calling an employeeSearch Web User Controller so people can search for employees to add to the training session. I have the Employee Names and Employee IDs listed out in JS on...

Why is the ASP.NET Repeater.Items collection empty, when controls are on the screen?

I have an ASP page with the following repeater: <asp:Repeater runat="server" ID="RegionRepeater" DataSourceID="SqlDataSourceRegions" EnableViewState="true"> <ItemTemplate> <tr> <td valign="top"> <b><%#Eval("description")%></b> <asp:HiddenField runat="server" ID="RegionID" ...

Render hyperlink control in Repeater

Hey everyone, I've got a repeater and it is bound to a dictionary . Although I can access the HyperLink, I can't render one. I have this code: <%# DataBinder.Eval((System.Collections.Generic.KeyValuePair<string, HyperLink>)Container.DataItem, "Value.NavigateUrl") %> The Value.NavigateUrl was a test to see if I could access that prop...

Linkbutton inside Repeater for paging ASP.Net

Hello I'm doing a webpage with a search that brings a lot of information from MSSQL. What I did is a stored procedure that return only the page to be seen on the website. Right now I'm working on the paging as I need to show something similar than google. If you are at page 1 they show first 10 pages and if you are at page 19 they show...

Get text from a reapeater object - flex

I have a label that is using a repeater to get information form a database. Now I'm trying to pass the information in that label to another label component, but I haven't had any luck. if I do a trace on the label in the repeater eg. trace (Gotid.text); I get this error in debug mode warning: unable to bind to property 'user_name' o...

Getting value in footer template from code behind-Repeater

Hello, I have a repeater like this: <asp:Repeater runat="server" ID="pde"> <HeaderTemplate></HeaderTemplate> <ItemTemplate> <asp:Literal runat="server" ID="literal1"></asp:Literal> </ItemTemplate> <FooterTemplate><asp:Literal runat="server" ID="literal2"></asp:Literal></FooterTemplate> </asp:Repeater> Now in literal2 I want to get ...

C# Wholesale Order form - textboxes in Gridviews in Repeater

I'm building a wholesale order form on a website. The current plan is to... -get an ArrayList of DepartmentUnits -a DepartmentUnit has various attributes like "deptId", "description" and its own ArrayList of StoreItems -The StoreItems have attached ArrayList of various SizeOptions -The SizeOptions have an inventory count integer alon...

VB.NET AddHandler throwing Object reference not set...

I have an ASP.NET page with code-behind in VB.NET. On the ASPX page I have a Repeater with an asp:ImageButton inside the repeater and I want to catch the clicks on the button. As far as I read I have to use FindControl and then handle the copy of the original control: Codebehind: Dim imagebutton1 As ImageButton = repeater.FindContro...

How to display all the items in Session and their values in a repeater ASP.NET

Hi i am a bit confused on how to display all the items in session in a repeater Any suggestion?? ...