Callbacks are not supported on TemplateField

G

Guest

Why can't it use callback here???


[NotSupportedException: Callbacks are not supported on TemplateField because
some controls cannot update properly in a callback. Turn callbacks off on
'GridView_Podcasts'.]


<asp:GridView
ID="GridView_Podcasts"
runat="server"
EnableSortingAndPagingCallbacks = "True"
AutoGenerateColumns = "False"
DataSourceID="PodcastsXML"
ForeColor="#FFFFFF"
GridLines="None">
<Columns>
<asp:TemplateField HeaderText="Title">
<ItemTemplate>
<asp:Image ID="Image1"
ImageUrl='<%#XPath("../image/podcast")%>' runat="server" />
<asp:HyperLink ID="Hyperlink1" runat="server"
Target="_blank" NavigateUrl='<%#XPath("title") %>' >
<%#XPath("title")%></asp:HyperLink>
<br /><br />
<asp:Label ID="Label1" runat="server"
Text=<%#XPath("description")%>></asp:Label>
<br /><br />
</ItemTemplate>
</asp:TemplateField>
</Columns>

<FooterStyle BackColor="#000000" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue"
HorizontalAlign="Center" />
<HeaderStyle BackColor="#EFBA67" Font-Bold="True" />
<AlternatingRowStyle BackColor="#F8F8F7" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top