所有问题: [repeater]

170 个问题

5
投票
6答案
33244 次观看

中继器控制中的水平方向

我有一个Repeater控件,用于显示上传的图像。 如何在中继器中水平显示图像?我该如何在此图片的底部加上标题?

0
投票
2答案
2143 次观看

如何在中继器或网格控件中显示图像?

我大约有200张图像要显示在页面上。 数据库仅存储图像所在的路径。图像本身存储在应用程序的文件夹中。EG:d:/ application / website / images / 我需要在显示缩略图的同时将原始尺寸图像转换为缩略图图像 是否有执行此操作的功能? 理想情况下,显示将具有5行和5列,然后使用分页显示其余数据。 本质上是一个图像库:该应用程序在网格/中继器页面上显示缩略图图像,当用户单击该缩略图时,将打开一个新的弹出窗口,显示整个图像。我可以使用中继器控件来完成这项工作吗? 任何想法如何在转发器控件中显示缩略图图像。 有没有可以帮助我的网站?

4
投票
1答案
3349 次观看

绑定到中继器时注入当前项目的索引

我将List<HtmlImage>绑定到中继器 它实际上是一个嵌套的转发器,列表是父转发器绑定到的属性之一 我想将当前数据项的索引插入<li>的id属性中 我在希望索引显示在下面的地方添加了评论 我有以下内容: <asp:Repeater ID="ImageListRepeater" runat="server" DataSource='<%# DataBinder.Eval(Container.DataItem, "Images") %>'> <HeaderTem...

0
投票
4答案
635 次观看

ASP.NET-用户控制中继器

我正在使用ASP.NET构建用于购物车的Web应用程序,并且对ASP.NET还是陌生的。 我的一位紧密联系人建议我使用用户控件,转发器和母版页来加快页面开发速度。 您能建议我阅读材料以快速掌握其用法吗? 感谢所有人。 关于, 贾斯汀·塞缪尔。

0
投票
1答案
531 次观看

如何使用PagedDataSource.CopyTo(或与我发送到中继器的相同数据一起使用)

我要用PagedDataSource填充一个Repeater,并在填充Repeater之后,我想对构成要发送到Repeater的页面的数据子集执行一些其他操作(我的CurrentPageIndex,PageSize = 10)。 所以我的问题是如何获得那10条记录? 通过回顾MSDN,看来我应该能够使用PagedDataSource.CopyTo将其复制到System.Array,但是我似乎正在得到“索引超出了数组的范围”。(我不确定我该如何从PagedDataSource设置数组的边界。) 或者,我很高兴能将这些记录放入SqlDataReader或以其他任何方式读取它们并对其进行...

6
投票
4答案
27665 次观看

ASP.NET Repeater和DataBinder.Eval

我的网页上有<asp:Repeater>,它绑定到以编程方式创建的数据集。 此中继器的目的是从A-Z创建索引,单击该索引可刷新页面上的信息。 中继器具有如下链接按钮: <asp:LinkButton ID="indexLetter" Text='<%#DataBinder.Eval(Container.DataItem,"letter")%>' runat="server" CssClass='<%#DataBinder.Eval(Container.DataItem, "cssclass")%>' Enabled='<%#Da...

4
投票
1答案
4145 次观看

中继器中的ASP.NET DataGrid

我有一个包含两列的表: CommunityID PersonID “ People”表具有(除其他功能外): FirstName LastName 我想为每个社区显示一个不同的DataGrid,每个数据网格仅包含属于该社区的人员。我想不使用4个单独的SqlDataSources来做到这一点。 Repeater看起来是个好方法,在ItemTemplate内有一个DataGrid,但我似乎无法使每个重复使用不同的值来达到目的。 如果有人对更好的方法有任何建议,我将不胜感激,因为这是我第一次涉足ASP.NET。 谢谢 迈克

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