repeater

ASP.NET Repeater not binding after ItemCommand

…衆ロ難τιáo~ 提交于 2019-12-24 07:48:33
问题 I have a repeater that is looping a user control, like this: <asp:Repeater ID="repItems" runat="server" EnableViewState="false" OnItemCommand="repItems_ItemCommand"> <ItemTemplate> <dmg:confirmItem runat="server" OnDataBinding="confirmitemItem_DataBinding" Basket="<%# Container.DataItem %>" /> </ItemTemplate> </asp:Repeater> My code behind looks like this: public void BindItems(List<ShopBasket> baskets) { _baskets = baskets; repItems.DataSource = baskets; repItems.DataBind(); } My custom user

asp.net repeater merge columns dynamically

非 Y 不嫁゛ 提交于 2019-12-24 07:19:19
问题 I have a repeater in my ASP.net page. I want to merge the columns which have same text. This should happen dynamically when I bind a datatable. I have searched a lot for this. But, without success. I doubt whether it is possible with a repeater. I would also like to mention that there are also image buttons and check boxes in each row. This is my repeater source:- <asp:Repeater ID="rpt1" runat="server" onitemcommand="rpt1_ItemCommand"> <HeaderTemplate> <table border="1" cellpadding="10" width

Create a new tab or window for a web page from ASP.NET

北城以北 提交于 2019-12-24 06:47:28
问题 I have a main page that I want to be a sort of dispatch center for the user in my web application. So I want the main page the stay open, but when the user selects certain tasks I can set it up so that a new tab or page is created with the task that they selected. I know how to transfer control to another page, but how can I do something like a Server.Transfer only make that new page appear in a new tab and keep the existing page open in the old tab/window? To give an example of what I'm

Getting the databound value from repeater control in asp.net

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 17:14:51
问题 As a follow up to my question Looping through a repeater control to get values of Textbox in asp.net If user has entered a a quantity in the textbox, I want to get the corresponding ProductID value from the repeater control: <asp:Repeater ID="rptRequestForm" runat="server"> <HeaderTemplate> <table border="0" width="100%"> <tr> <td style="width:50%" class="TextFontBold"><asp:Label runat="server" ID="Label1" Text="Supply Name"></asp:Label></td> <td style="width:25%" class="TextFontBold"><asp

Linkbutton inside Repeater for paging ASP.Net

守給你的承諾、 提交于 2019-12-23 09:29:49
问题 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 since page 9 to 28. I think the best option to show the page numbers is using a linkbutton inside a repeater. The problem that I have now is that I do not know the

C# - Reverse Repeater Order

笑着哭i 提交于 2019-12-23 04:45:38
问题 I am working on an updates page where the user can input updates into the system and all the updates are shown in a repeater control on the same page. As they are now, the latest update is displayed on the bottom of the page whilst the first update is displayed on top. Is there a way to reverse the order such that the latest updates in the repeater are always displayed on top? Thanks :) 回答1: Just change the query which finds "all the updates" so that it returns the results in the descending

jQuery form repeater and select2 dont work together

£可爱£侵袭症+ 提交于 2019-12-23 04:09:36
问题 I am using Select2 and jQuery form repeater (https://github.com/DubFriend/jquery.repeater) I have searched on google/so for 2 days, but cant seem to get it to work. include jquery/select2.js/jquery.repeater.js var form = $('#form'); form.find('select').select2(); form.repeater({ show: function () { $(this).show(function(){ form.find('select').select2('destroy').select2(); }); }, hide: function (remove) { $(this).hide(remove); } }); The problem is the jQuery.repeater clones the div tag in

Binding a List to Repeater in WinForm application

穿精又带淫゛_ 提交于 2019-12-23 03:23:17
问题 I recently started this question. The suggested approach was to use a DataRepeater . I've seen a lot of examples on how to bind the repeater, but all of them were for ASP, not Windows Form applications. I have added Label , PictureBox and Button components to the template, but I've not been able to successfully bind my IList<SomeObject> to my DataRepeater . I'd like to populate those components with information from a list. How to bind a IList<SomeObject> to a DatarRepeater in WinForm

Repeater with HiddenField

时光毁灭记忆、已成空白 提交于 2019-12-23 03:09:04
问题 I have the following HiddenField within a Repeater labeled "AdminGetAllRPT": <asp:Repeater ID="AdminGetAllRPT" runat="server" OnLoad="AdminGetAllRPT_Load"> <HeaderTemplate> <table id="AdminGetAllTBL"> <tr> <td></td> <td>Username</td> <td>Email Address</td> <td>First Name</td> <td>Last Name</td> <td>Active?</td> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:LinkButton ID="AdminEditLnk" runat="server" OnClick="AdminEdit_OnClick">Edit <asp:HiddenField ID="editAdminEmail" runat="server"

Dynamically adding a user control to a repeater

最后都变了- 提交于 2019-12-22 06:55:48
问题 I have a class (MyClass) which represents a nested hierarchy, so the class has a property which is a collection of MyClass. MyClass also has a title property To show it on a web page, I was hoping to create a user control which had a repeater. In the item template I would have literal to display the title property, and on the ItemCreated event of the repeater, I would create a new instance of the usercontrol, and add it into the current item in the repeater. My problem is, when the Page_Load