Все вопросы: [repeater]

163 вопросов

1
голосов
1ответов
6551 просмотров

checkboxes in repeater

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" >...

2
голосов
4ответов
4574 просмотров

Paging with Jquery in ASP.NET

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

2
голосов
5ответов
1092 просмотров

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 n...

4
голосов
1ответов
1103 просмотров

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"> ...

0
голосов
2ответов
530 просмотров

Connection closing after repeater databinding

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 r...

0
голосов
2ответов
6828 просмотров

Why is FindControl not working with my repeater?

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 t...

0
голосов
1ответов
661 просмотров

If statement using a class within a repeater

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 ...

1
голосов
2ответов
4654 просмотров

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="myRepeat...

1
голосов
1ответов
709 просмотров

repeater inside dynamic control losing items

I have a repeater inside a dynamic control, I am trying to get the items of the repeater in a postback prior to databinding. This seems to work when I have a static repeater where the items are still intact, but when my repeater is inside a dynamic control and I try to get "repeater.Items", the ...

0
голосов
2ответов
4218 просмотров

How might I control a checkbox in a repeater?

In my project, there is a Repeater. And in the repeater is a CheckBox. When I bind data to the Repeater, how can I control (set checked / unchecked) the CheckBoxs that are produced by the Repeater? This is what I've tried: <asp:Repeater ID="Security1" runat="server"> <ItemTemplate&...

0
голосов
3ответов
1202 просмотров

retrieve user control child elements programatically in .net, how to?

ive been searching throughout msdn, but i dont know what I should be searching for exactly...how do I access the child elements of a user control, I do not wish to create a new custom control that renders its own html, the html output is a simple repeater in an ascx file, it looks like this: &lt...

3
голосов
2ответов
4123 просмотров

What is ItemCommand and ItemDatabound of a Data Representation Control?

Please Explain with example ItemCommand and ItemDatabound of a Data Representation Control.

7
голосов
4ответов
6448 просмотров

ASP.NET : What does the '#' starting a mean?

I've been using the repeater control in asp.net for awhile now..and every now and then i keep forgetting to add the '#' inside the so i was wondering what does it mean ?

1
голосов
5ответов
11333 просмотров

Send string with QueryString in Repeater Control in ASP.net

I use a Repeater Control for showing the data in my WebSite. I use a HyperLink in the Repeater Control for showing one field of my table in the database. When you click, I want that link go to another page and send a string to that [page] with a QueryString. I don't know how I do that - can you...

7
голосов
1ответов
8620 просмотров

How to save items loaded in a repeater?

I am loading a set of records that load in a Repeater control. I have a CheckBox control for each record that determines whether the item is Active/Inactive. How do I loop through all the records in the Repeater on a button click event and save the state of the CheckBox? I will need to get the...

0
голосов
1ответов
120 просмотров

.net repeater - store current element

I have a repeater. I can access individual properties of the element being repeated on - e.g. if my repeater is bound to a list of people, I can access 'FirstName' with #Eval("FirstName"). However, I would like to actually store the current element in a variable Person person = ... GetCurre...

4
голосов
4ответов
603 просмотров

asp.net repeaters. To use or not to use

We are currently using a repeater to display input fields, drop downs, check boxes, and calendar items on each row. The desired functionality is to allow the user to add up to 10(this could potentially change by web config) items (each row). Is it appropriate to list these out in a repeater or ...

1
голосов
3ответов
1063 просмотров

Listing users in a repeater, how to get UserId when the row's button is clicked

I have a repeater that lists Users. Each row has the userId, username, etc, and a button in the last column. When the button is clicked, how can I get the current row's user ID?

4
голосов
6ответов
11044 просмотров

Populating DropDownList inside Repeater not working

I'm trying to populate a dropdown list inside a repeater, but I'm not being very successful. I'm probably using the wrong EventArgs e. Here's my aspx code: <asp:Repeater runat="server" id="criteriaScore"> <HeaderTemplate> <ul> ...

1
голосов
2ответов
7883 просмотров

access label inside a repeater ItemTemplate that is inside a usercontrol from asp.net page

I have a repeater inside a user control.User control in on page shoppingcart.aspx.I want to access all lblPrice from javascript from a function inside shoppingcart.aspx.How to access all of these labels. <asp:Repeater ID="rptShoppingCart" runat="server"> <HeaderTemplate> ...

0
голосов
2ответов
1019 просмотров

how to add an empty row in a IQueryable?

If you had a filled IQueryable variable. How would you add a new empty entry in the end of that list? Here is what I have to do: if there is 2 entry, add 3 empty entry if there is 0 entry, add 5 empty entry if there is 5 entry, add 5 empty entry You can now see the pattern and it's for a re...

1
голосов
3ответов
1825 просмотров

Gridview inside Repeater not firing Delete Event

I have a Repeater that has a gridview in it, which uses an SqlDataSource with a delete command. When I click delete on a given row, it posts back but doesn't fire the delete. Am I forgetting something?

4
голосов
4ответов
265 просмотров

LINQ connecting Many - Many relationships

I am using c#.net and LINQ Within my LINQ model I have three database tables: LINQ MODEL http://img180.imageshack.us/img180/9827/linqmodel.jpg The code below is how I access the data: public IQueryable<tblAvailability> GetAvailabilitiesBySet(int id) { return (from a in d...

0
голосов
1ответов
1080 просмотров

RadioButton Repeater asp.net

I've added a radiobutton to a repeater in asp.net. I've made the group names work with some Javascript. The problem I am having is when I click save button, the radionbutton.Checked is always false. I can't get the radio button to hold it's checked value.

3
голосов
3ответов
3905 просмотров

Referencing DataItem of parent Repeater control inside a User Control

I need to place a user control into the template of a repeater control and reference data items from the repeater's datasource. I tried (ignore the second cast which is specific to the CMS platform I'm using): <%# ((EPiServer.Core.PageData)((RepeaterItem)Container.Parent.NamingContainer).Dat...

1
голосов
2ответов
2369 просмотров

Checking for null database value in ASP Repeater control

I have never written a lick of ASP.NET in my life before this week so go easy on me, please. I have an ASP.NET page that displays pictures from a database. I create a SqlDataReader and bind the repeater to this reader. The page displays a table with three columns: a thumbnail of the pic (path fr...

3
голосов
5ответов
10933 просмотров

Get the current index in an ASP.Net 2.0 Repeater control

Maybe this is something very easy to do it but so far it's taking me all day to have something working. I have a repeater filled with a table. Each row in the repeater has a set of controls. The most important of them is a drop down list with AutoPostback = true. This ddl has to postback when ...

1
голосов
1ответов
596 просмотров

Disappearing Repeater

I have a Repeater generating ImageButtons. When I click an ImageButton or interact with the GridView elswhere on the page, everything generated in my Repeater disappears. All of my controls are in an UpdatePanel so I dont beleive this is a PostBack issue.

30
голосов
10ответов
36504 просмотров

asp.net radio button grouping

I am currently having an issue with radio buttons and grouping. I have an asp radio button within a repeater control. I have the group name attribute set to "Customer". When the page loads, the radio buttons are not grouped. Instead of the id fields being set to the group name, it is setting the ...

0
голосов
1ответов
84 просмотров

repeater string not allowed

I have a text file which contains lines of string for example: a, b, c, d, e, d t, e, rt, q, r, e, t, w, d, t I need to make sure that in each line I read from a file, no repeater character or string is allowed.I need to check and make sure there is no repeater character in each line.So how w...