![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have an <asp:Repeater> on my page. In the repeater I have LinkButtons, which when clicked cause an "OnItemCommand" method to be called. In my "OnItemCommand" method, I notice that the e.Item.DataItem property is null. Is this normal? Is it possible to have this property return the original DataItem which has used when popultaing the Repeater control? (I can see that the DataItem is set as I expected on OnItemDataBound, but not in the OnItemCommand). Thanks, Peter -- |
#3
| |||
| |||
|
|
Hi, I have an <asp:Repeater> on my page. In the repeater I have LinkButtons, which when clicked cause an "OnItemCommand" method to be called. In my "OnItemCommand" method, I notice that the e.Item.DataItem property is null. Is this normal? Is it possible to have this property return the original DataItem which has used when popultaing the Repeater control? (I can see that the DataItem is set as I expected on OnItemDataBound, but not in the OnItemCommand). Thanks, Peter -- |
#4
| |||
| |||
|
|
Hi, I have an <asp:Repeater> on my page. In the repeater I have LinkButtons, which when clicked cause an "OnItemCommand" method to be called. In my "OnItemCommand" method, I notice that the e.Item.DataItem property is null. Is this normal? Is it possible to have this property return the original DataItem which has used when popultaing the Repeater control? (I can see that the DataItem is set as I expected on OnItemDataBound, but not in the OnItemCommand). Thanks, Peter -- |
#5
| |||
| |||
|
|
In what event do you do the call the DataBind() method? |
#6
| |||
| |||
|
|
In what event do you do the call the DataBind() method? |
#7
| |||
| |||
|
|
In what event do you do the call the DataBind() method? |
#8
| |||
| |||
|
|
Nathan Sokalski wrote: In what event do you do the call the DataBind() method? I call it from within Page_Load. From Page_Load I fetch some data from a "data access" class which I set as the DataSource for the repeater, and then I call DataBind. If I have a "ItemDataBound" method, I can see the individual DataItem objects, but I can not see them when the "ItemCommand" method is called. Thanks, Peter |
#9
| |||
| |||
|
|
Nathan Sokalski wrote: In what event do you do the call the DataBind() method? I call it from within Page_Load. From Page_Load I fetch some data from a "data access" class which I set as the DataSource for the repeater, and then I call DataBind. If I have a "ItemDataBound" method, I can see the individual DataItem objects, but I can not see them when the "ItemCommand" method is called. Thanks, Peter |
#10
| |||
| |||
|
|
Nathan Sokalski wrote: In what event do you do the call the DataBind() method? I call it from within Page_Load. From Page_Load I fetch some data from a "data access" class which I set as the DataSource for the repeater, and then I call DataBind. If I have a "ItemDataBound" method, I can see the individual DataItem objects, but I can not see them when the "ItemCommand" method is called. Thanks, Peter |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |