repeater

How to get repeater data using checkbox in WIX?

倖福魔咒の 提交于 2021-01-28 20:43:19
问题 I'm showing repeater data from database.Data is showing perfectly in repeater . Now I want to select Checkbox on one or more repeater but not working. When I'm checked checkbox it should show "Air Jordan".But it is showing "Hydra".Also index value are not showing. This is my code export function checkbox1_change(event) { // Add your code for this event here: let myid=$w('#text32').text; console.log(myid); $w("#repeater2").onItemReady( ($item, itemData, index) => { if ($w("#checkbox1").checked

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'userid'

a 夏天 提交于 2020-03-26 04:02:21
问题 I want to find the total number of active users who are members of the user table in my database. But I get an error like this: DataBinding: 'System.Data.DataRowView' does not contain a property with name 'userid' My code is as follows: <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <h3><%#Eval("userid") %></h3> </ItemTemplate> </asp:Repeater> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings

Rebinding Repeater in an event loses its ViewState on its controls

谁都会走 提交于 2020-03-21 03:56:09
问题 I have a repeater in my page with some pre-conditions such as a checkbox list and listboxes that dictate what the datasource for the repeater brings back. A button is clicked which will databind the repeater which works fine. However if the user decides they want to add something else in or remove something they can check/uncheck some fields and then hit the button again which will rebind the repeater and change what is displayed, however the viewstate of all the current controls in the

Connection closing after repeater databinding

瘦欲@ 提交于 2020-02-02 15:59:26
问题 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 know there is data in the repeater), the connection is closed automatically right after that same repeater (Repeater 1). The problem, is that there is another

Triggering JQuery event on a checkbox inside of .NET repeater

廉价感情. 提交于 2020-01-25 07:19:09
问题 I have a repeater with a checkbox inside of it. <tr class="datarow"> <td style="display: none"> <asp:HiddenField runat="server" ID="hfPortalUserId" Value='<%# Eval("portalUserId") %>' /> </td> <td> <asp:TextBox ID="tbUserName" runat="server" Enabled="false" Text='<%# Eval("portalCommonName") %>' Width="98%"></asp:TextBox> </td> <td> <asp:CheckBox ID="chkActive" Enabled="false" runat="server" Checked='<%# IsPortalUserActive((DateTime)Eval("portalUserInactive")) %>' /> </td> <td> <asp:CheckBox

Dynamically add row to GridView / DataGrid / Repeater?

半城伤御伤魂 提交于 2020-01-15 11:43:22
问题 I want to create a "table" that the user will complete which has an unknown number of rows. To illustrate it, let's say it is to enter details from a receipt after a shopping trip - i.e. the number of rows (or items) will be unknown. To acheive this I want to create a grid with a single row, and two columns containing textboxes to enter the item name and price: +-------+---------+ + Item + Price + +-------+---------+ + Beans + 0.99 + +-------+---------+ Then after the first row has been

Dynamically add row to GridView / DataGrid / Repeater?

二次信任 提交于 2020-01-15 11:39:56
问题 I want to create a "table" that the user will complete which has an unknown number of rows. To illustrate it, let's say it is to enter details from a receipt after a shopping trip - i.e. the number of rows (or items) will be unknown. To acheive this I want to create a grid with a single row, and two columns containing textboxes to enter the item name and price: +-------+---------+ + Item + Price + +-------+---------+ + Beans + 0.99 + +-------+---------+ Then after the first row has been

<script>…</script> inside a repeater control code not showing up in the source code on page render

假如想象 提交于 2020-01-15 03:51:28
问题 I have a repeater control where the <%#DataBinder.Eval(Container.DataItem, "Display")%> part doesn't show up. The code that the "Display" stores is set as follows: item.Display = "<script type='text/javascript'> AudioPlayer.embed('ffcedea7-4822-465f-85b6-89924f7b81fa', {soundFile: 'http://s3.amazonaws.com/blah/af8g7fd3-1793-4b5e-92b7-9d11ad1cc19c.mp3'}); </script>"; After the page load, the audio embed file doesn't show up. The code doesn't even show up in the source. If I add a random string

Binding a Generic List of type struct to a Repeater

六眼飞鱼酱① 提交于 2020-01-14 08:00:32
问题 I've had a bit of a problem trying to bind a generic list to a repeater. The type used in the generic list is actually a struct. I've built a basic example below: struct Fruit { public string FruitName; public string Price; // string for simplicity. } protected void Page_Load(object sender, EventArgs e) { List<Fruit> FruitList = new List<Fruit>(); // create an apple and orange Fruit struct and add to List<Fruit>. Fruit apple = new Fruit(); apple.FruitName = "Apple"; apple.Price = "3.99";

Create a Repeater control in ASP.Net

喜欢而已 提交于 2020-01-11 12:06:39
问题 I'm using two drop down and bind values to that drop down. Now am adding a new button add_new. I want to create the above drop downs below when I click the add button and maintain the previous selected values. Please help me to do this. 回答1: You can achieve the desired result using Repeater control of ASP.Net. You can create any type of template as you wish, see the code below: ASPX: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <asp:DropDownList ID="DropDownList1" runat="server