Utilisé propriété DataRepeater
Bonjour
Je veux utiliser les propriété d'une de mes classes pour le DataRepeater.
Est-ce possible ?
Exemple
IssueCommentInfo.cs
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| public string username
{
get
{
return Data.username;
}
set
{
if (!IsDataValueEqual(Data.username, value))
{
Data.username = value;
MarkModified();
}
}
} |
Je veux l'utiliser la-dedans
Code:
1 2 3 4 5 6 7 8 9 10 11
| <ItemTemplate>
<tr>
<td rowspan="2"><%%></td>
<td><%# a%></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</ItemTemplate> |
J'ai fais un ArrayList
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| protected void Page_Load(object sender, EventArgs e)
{
IIssueCommentInfoService commentInfoservice = V2K.Framework.Context.Current.GetService<IIssueCommentInfoService>();
IssueCommentInfo[] issueCommentsInfos = commentInfoservice.GetAll();
ArrayList commentInfoList = new ArrayList();
commentInfoList.Add(issueCommentsInfos);
}
public void BindControlData(ArrayList commentInfoList)
{
Repeater1.DataSource = commentInfoList;
Repeater1.DataBind();
} |
Quelqu'un peut m'aider
Merci