日期:2014-05-20  浏览次数:20942 次

数据显示问题
一段很简单的代码,就是在客户端显示详细数据供大家浏览,我给大家看下代码,不过我估计代码没问题,望大家帮忙搞定下,在线等<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/ClientAdmin/common.master" CodeFile="NewsDetail.aspx.cs" Inherits="ClientAdmin_NewsDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
  <ItemTemplate> 
  <table style="width:98%;" cellpadding="0" cellspacing="0" border="0">
  <tr>
  <td>新闻标题
  </td>
  <td><asp:TextBox ID="txtTitle" runat="server" Text='<%#Bind("NewsTitle") %>'></asp:TextBox>
  </td>
  </tr>
  <tr>
  <td>新闻图片
  </td>
  <td><asp:Image ID="imgNews" runat="server" ImageUrl='<%#Eval("NewsImage","~/{0}") %>' />
  </td>
  </tr>
  <tr>
  <td>新闻内容
  </td>
  <td><asp:TextBox ID="txtContent" runat="server" Text='<%#Bind("NewsContent") %>'></asp:TextBox>
  </td>
  </tr>
  <tr>
  <td>新闻数量
  </td>
  <td><asp:TextBox ID="txtCount" runat="server" Text='<%#Bind("NewsCount") %>'></asp:TextBox>
  </td>
  </tr>
  <tr>
  <td>创建日期
  </td>
  <td><asp:TextBox ID="txtCreattime" runat="server" Text='<%#Bind("CreateTime") %>'></asp:TextBox>
  </td>
  </tr>
  <tr>
  <td>
  </td>
  <td><asp:Button ID="Button1" runat="server" Text="编辑" CommandName="xiugai" CommandArgument='<%# Eval("Id") %>' />
  </td>
  </tr> 
  </table>
  </ItemTemplate>
  </asp:Repeater>
  <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetNewsById"
  TypeName="VideoSys.BLL.LY_NewManage">
  <SelectParameters>
  <asp:QueryStringParameter DefaultValue="0" Name="id" QueryStringField="id" Type="Int32" />
  </SelectParameters>
  </asp:ObjectDataSource>
   
</asp:Content>


------解决方案--------------------
什么错误?
------解决方案--------------------