我有一个 WCF 服务,它提供一个数据对象,其中一个属性是通过调用创建的 DateTimenew DateTime(10,1,1995)
无论如何,当这个数据对象作为数据源链接到 FormView 时,我得到一个 DateTime 格式错误。我试图更改源中的 FormView,但我不知道如何访问该对象。
<ItemTemplate>
ExtensionData:
<asp:DynamicControl ID="ExtensionDataDynamicControl" runat="server" DataField="ExtensionData" Mode="ReadOnly" />
<br />
Authors:
<asp:DynamicControl ID="AuthorsDynamicControl" runat="server" DataField="Authors" Mode="ReadOnly" />
<br />
Description:
<asp:DynamicControl ID="DescriptionDynamicControl" runat="server" DataField="Description" Mode="ReadOnly" />
<br />
PubDate:
<asp:DynamicControl ID="PubDateDynamicControl" runat="server" DataField="PubDate" Mode="ReadOnly" />
<br />
PubID:
<asp:DynamicControl ID="PubIDDynamicControl" runat="server" DataField="PubID" Mode="ReadOnly" />
<br />
Publisher:
<asp:DynamicControl ID="PublisherDynamicControl" runat="server" DataField="Publisher" Mode="ReadOnly" />
<br />
Title:
<asp:DynamicControl ID="TitleDynamicControl" runat="server" DataField="Title" Mode="ReadOnly" />
<br />
</ItemTemplate>