|
| Adding properties to Thread class/ get more out of the DB |
 |
Tue, 12 Sep 2006 14:43:33 +000 |
Hello,
At the moment I want to add TotalReplies to the Thread class (at least: get it
out of the database). I've tried several things, like adding the property to the
Thread class (GalleryPost.cs and Thread.cs)
public int TotalReplies{
get {
return TotalReplies;
}
set {
TotalReplies= value;
}
}
and the IThread interface. The solution builds but had stops at the Get (some
kind of infinite loop)
The value is in the DB. How to get it out a there with:
<%# DataBinder.Eval(Container.DataItem,
"TotalReplies".ToString()%>
Hope to hear a comment soon.
Peter
|
| Post Reply
|
| Re: Adding properties to Thread class/ get more out of the DB |
 |
Tue, 12 Sep 2006 15:22:02 +000 |
The Thread class already has a "Replies" property. It is inherited
from the base "Post" class.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|