我加了代码,但是它报错了,你看看我的代码把,
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
Width="581px" CellPadding="0" GridLines="None" Height="119px" SelectedIndex="0" AllowPaging="True" HorizontalAlign="Center">
<Columns>
<asp:BoundField DataField="nname" HeaderText="新闻标题" SortExpression="nname" />
<asp:BoundField DataField="dates" HeaderText="发布日期" SortExpression="dates" />
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink
id="h1"
runat="server" Text="<%# DataBinder.Eval(container.DataItem,"name") %>"
NavigateUrl="<%#"gstz.aspx?id="+DataBinder.Eval(Container.DataItem,"productid")%>"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<AlternatingRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<EditRowStyle Font-Names="宋体" HorizontalAlign="Center" VerticalAlign="Middle" />
<SelectedRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:GridView>
错误
1
服务器标记的格式不正确。
C:\Inetpub\wwwroot\pp\login.aspx
200