Questions tagged [itemdatabound]

74 questions
1
vote
0 answers

onitemdatabound doesn't work after postback

Here is my page codes. I just want to display my records. There is also search panel at the page. In the search panel, there are a couple of dropdownlist control and they have OnSelectedIndexChanged methods. When I change the selected item on the…
aydoganf
  • 31
  • 1
  • 9
1
vote
2 answers

Error on ItemDataBound on repeater

I am working with repeaters in asp.net and keep getting this error when I try to debug. I have multiple repeaters in this application already and those repeaters are all working correctly with no problem. when I went to add this one to the top of…
agrk12
  • 43
  • 2
  • 6
0
votes
2 answers

Retrieve RadGrid cell value in ItemDataBound - "Input string was not in a correct format."

I am trying to set a CssClass based on a the comparison of two cell values in my radGrid. Both cells are formatted for currency {0:c}, so that when I compare them, I have a $ sign in the text string. I know how to parse a string to remove the $…
Will
  • 421
  • 2
  • 8
  • 23
0
votes
1 answer

First row of DataGrid not being filled in with DataList data

I have a DataGrid with 4 columns and a DataList with 5 columns. The DataList resides inside the DataGrid as another separate column by itself. Everything is coming out fine, except that the first row in the datagrid does not display the contents of…
sagesky36
  • 4,542
  • 19
  • 82
  • 130
0
votes
1 answer

Item Databound event is not firing in IE

I have a strange issue in a datalist
Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206
0
votes
1 answer

ItemCommand Fires Before ItemDataBound on PostBack? WTH?

This is just stupid. I've been at this for over 5 hours and can't figure out why my freaking commands aren't firing properly. The only ones that fire properly are the Built-in commands "Edit" & "Cancel" Markup
Chiramisu
  • 4,687
  • 7
  • 47
  • 77
0
votes
1 answer

total in repeater footer, itemdatabound in VB.NET

I want to sum the total of the gender at the repeater footer using vb.net by using item data bound, the behind code is wrong cause I don't know how to do it... FRONT CODE
hlzoic
  • 13
  • 5
0
votes
2 answers

How to conditionally filter an XmlDataSource of a repeater based on a parents value

I am trying to build a product detail page menu navigation and want to only show the navigation items for products that are in the same category. The data is maintained in two different XML files. One containing the current product data, and one…
graney
  • 1,365
  • 2
  • 13
  • 20
0
votes
2 answers

Error accessing a nested repeater in parent ItemDataBound event

Error: 'Repeater' does not contain a definition for 'DataSource' and no extension method 'DataSource' accepting a first argument of type 'Repeater' could be found (are you missing a using directive or an assembly reference?) Code: protected void…
Kashif
  • 14,071
  • 18
  • 66
  • 98
0
votes
2 answers

Creating buttons dynamically in ListView

I have a following problem. I have a ListView which returns data from SQL table. One of its columns looks like "Ambient/Trance/Goa Trance/House". All i want to do is parse this column and create buttons for each value, for example a button for…
0
votes
2 answers

how to convert an e.item.dataitem to type (Of T)

I'm trying to do this in an item_databound event of a datagrid in asp.net Dim EntType As EmployeeEntity = DirectCast(e.Item.DataItem, EmployeeEntity ) but I encounter the error Cannot convert to class EmployeeEntity The EmployeeEntity class has…
0
votes
1 answer

Retrieving values only once without using ItemDataBoundEvent which repeatedly return the value

On DataService.cs, the function returns a list as follows: [WebMethod()] public SomeList[] GetListing( On client side, I have this: function onListLoadSuccess(someLists) { var dataList = $find('<%=…
Weng Fai Wong
  • 640
  • 3
  • 16
  • 35
0
votes
0 answers

How to get the parent Datalist's row ID

I have a nested Datalist. I'm trying to get the parent Datalist's ID. To do this I'm using ItemDataBound on parent Datalist. This line gets the parent Datalist object's row ID but I'm trying to get the table row's ID which is on the table. How can I…
Bengi Besçeli
  • 3,638
  • 12
  • 53
  • 87
0
votes
1 answer

ListView ItemDataBound on all pages

The ItemDataBound event of the ASP.NET ListView seems to only deal with the visible page as determined by the DataPager. How would I be able to utilize data binding on all pages worth of the ListView? This is regarding using ItemDataBound to check…
Vin
  • 1
  • 1
0
votes
1 answer

Datalist change row color using itemdatabound event problem

I am trying to change the row color of a DataList Control...
CraigJSte
  • 912
  • 6
  • 17
  • 33