I have what I think to be an odd problem with listview databinding.
I am calling a protected method on my code-behind called ItemHtml() - as seen below.
<ItemTemplate>
<div class="itemWrapper">
<%# ItemHtml() %>
</div>
</ItemTemplate>
The method is defined as follows.
protected string ItemHtml()
{
string itemHtml =
StateHeaderIfNewState()
+ ActivityOwnerIfNew()
+ ActivityCategoryIfNew()
+ ActivityDescriptionHtml()
+ TaskDescriptionHtml()
+ RecordDetailsHtml();
Trace.Write("DEBUG", itemHtml);
return itemHtml;
}
The trace shows an "itemHtml" like the following (I've removed the actual html from the code to ensure it's not just invalid html): Virginia, Activity Owner Name, Category, Activity, Task, Details
However, the page source is missing the first two values (begins with "Category").
Am I misunderstanding something about listview databinding? How could the trace have one value, but the source have another?