编译器错误消息: CS0115: “ASP.XXX.aspx.GetTypeHashCode()”: 没有找到适合的方法来重写
行1437:行1438:[System.Diagnostics.DebuggerNonUserCodeAttribute()]行1439:publicoverridein...
行 1437:
行 1438: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 1439: public override int GetTypeHashCode() {
行 1440: return 548771320;
行 1441: }
1439行出错!
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
ASP代码如下:
<asp:DataGrid ID="DataGrid1" runat="server" AllowPaging="True" OnPageIndexChanged="DataGrid1_PageIndexChanged" Width="500px"
ShowHeader="False" BackColor="White" BorderColor="#CC9966" BorderStyle="None" CellPadding="4" Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" GridLines="None">
<Columns>
<asp:TemplateColumn HeaderText="序号" HeaderStyle-BackColor="#3366ff">
<ItemTemplate>
<%#Container.ItemIndex+1 %>
</ItemTemplate>
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:TemplateColumn>
<asp:BoundColumn DataField="xm" HeaderText="歌手姓名" HeaderStyle-BackColor="#3366ff">
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="gender" HeaderText="性别" HeaderStyle-BackColor="#3366ff">
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="lb" HeaderText="类别" HeaderStyle-BackColor="#3366ff">
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="靓照" HeaderStyle-BackColor="#3366ff">
<ItemTemplate>
<IMG style="WIDTH: 96px; HEIGHT: 96px" height="96" src="uppic/<%#DataBinder.Eval(Container.DataItem, "fname") %>" width="776">
</ItemTemplate>
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="查看专辑" HeaderStyle-BackColor="#3366ff">
<ItemTemplate>
<a href='gqlist.aspx?gs=<%#DataBinder.Eval(Container.DataItem, "xm") %>'>查看专辑</a>
</ItemTemplate>
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:TemplateColumn>
</Columns>
<HeaderStyle HorizontalAlign="Center" />
</asp:DataGrid>
小弟刚学asp 请大牛级别前辈费心了... 展开
行 1438: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 1439: public override int GetTypeHashCode() {
行 1440: return 548771320;
行 1441: }
1439行出错!
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
ASP代码如下:
<asp:DataGrid ID="DataGrid1" runat="server" AllowPaging="True" OnPageIndexChanged="DataGrid1_PageIndexChanged" Width="500px"
ShowHeader="False" BackColor="White" BorderColor="#CC9966" BorderStyle="None" CellPadding="4" Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" GridLines="None">
<Columns>
<asp:TemplateColumn HeaderText="序号" HeaderStyle-BackColor="#3366ff">
<ItemTemplate>
<%#Container.ItemIndex+1 %>
</ItemTemplate>
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:TemplateColumn>
<asp:BoundColumn DataField="xm" HeaderText="歌手姓名" HeaderStyle-BackColor="#3366ff">
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="gender" HeaderText="性别" HeaderStyle-BackColor="#3366ff">
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="lb" HeaderText="类别" HeaderStyle-BackColor="#3366ff">
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="靓照" HeaderStyle-BackColor="#3366ff">
<ItemTemplate>
<IMG style="WIDTH: 96px; HEIGHT: 96px" height="96" src="uppic/<%#DataBinder.Eval(Container.DataItem, "fname") %>" width="776">
</ItemTemplate>
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="查看专辑" HeaderStyle-BackColor="#3366ff">
<ItemTemplate>
<a href='gqlist.aspx?gs=<%#DataBinder.Eval(Container.DataItem, "xm") %>'>查看专辑</a>
</ItemTemplate>
<HeaderStyle BackColor="#3366FF"></HeaderStyle>
</asp:TemplateColumn>
</Columns>
<HeaderStyle HorizontalAlign="Center" />
</asp:DataGrid>
小弟刚学asp 请大牛级别前辈费心了... 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询