<%@ page language="C#" autoeventwireup="true" inherits="general_MyTable_NewsList, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table class="small" cellSpacing="1"  border="0" bgcolor=#000000 style="width: 760px" align="center">
            <tr>
                <td class="TableData" style="height: 23px" >
                    输入文字:
                    <asp:TextBox ID="TxtSubjectName" runat="server" CssClass="BigInput"></asp:TextBox>
                    <asp:DropDownList ID="DropType" runat="server">
                        <asp:ListItem>标题</asp:ListItem>
                        <asp:ListItem>内容</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="Button1" runat="server" CssClass="BigButton" Height="26px"
                        Text="新闻检索" Width="80px" OnClick="Button1_Click" /></td></tr>
                 <tr>
                <td  align=center noWrap class="TableData" valign=top height=500><C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Paging, Selection, Sorting" 
            DataKeyField="News_Id"  OnItemCreated="C1WebGrid1_ItemCreated"
            OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnSortingCommand="C1WebGrid1_SortingCommand" SkinID="gridviewSkin"  width="700px"    >
            <Columns>
                <C1WebGrid:C1BoundColumn Visible=false  DataField="News_Id" HeaderText="新闻编号" ReadOnly="True" SortExpression="News_Id">
                    <ItemStyle HorizontalAlign="Center" Width="150px" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1TemplateColumn HeaderText="新闻标题" >
                <ItemTemplate >
                  <a  href='NewsInfo.aspx?type=news&id=<%# Eval("News_Id")%>'> <%# Server.HtmlDecode(Eval

                                                                                   ("Title").ToString()).Length > 30 ? Server.HtmlDecode(Eval

                                                                                   ("Title").ToString()).Substring(0, 29) + "..." : Server.HtmlDecode(Eval

                                                                                   ("Title").ToString())%></a>
                </ItemTemplate>
                </C1WebGrid:C1TemplateColumn>
              
                <C1WebGrid:C1BoundColumn DataField="User_Name" HeaderText="发布人" SortExpression="User_Name">
                  <ItemStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Exp1" HeaderText="发布日期"  DataFormatString="{0:d}" SortExpression="Exp1">
                  <ItemStyle  HorizontalAlign="Center"  Width=150px />
                </C1WebGrid:C1BoundColumn>
            
              
               

                    
            	</Columns>
        </C1WebGrid:C1WebGrid></td></tr>
                </table>
    </form>
</body>
</html>
