<%@ Page language="c#" Codebehind="search.aspx.cs" AutoEventWireup="false" Inherits="baoge.search1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>search</title>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<asp:TextBox id="key_word" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute; TOP: 48px" runat="server"></asp:TextBox>
				<asp:Button id="btnsubmit" style="Z-INDEX: 102; LEFT: 400px; POSITION: absolute; TOP: 48px"
					runat="server" Text="搜索" Width="48px"></asp:Button>
				<asp:DropDownList id="search_type" style="Z-INDEX: 103; LEFT: 280px; POSITION: absolute; TOP: 48px"
					runat="server" Width="96px">
					<asp:ListItem Value="0" Selected="True">文章标题</asp:ListItem>
					<asp:ListItem Value="1">文章内容</asp:ListItem>
				</asp:DropDownList>
				<asp:CustomValidator id="Cv_id" runat="server" ErrorMessage="非法字符" ControlToValidate="key_word"></asp:CustomValidator>
				<asp:DataGrid id="DataGrid1" style="Z-INDEX: 104; LEFT: 88px; POSITION: absolute; TOP: 80px" runat="server"
					Width="90%" Height="208px" AutoGenerateColumns="False" AllowPaging="True">
					<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
					<ItemStyle ForeColor="#000066"></ItemStyle>
					<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="1px" ForeColor="White" BackColor="#006699"></HeaderStyle>
					<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
					<Columns>
						<asp:TemplateColumn HeaderText="文章标题">
							<ItemTemplate>
								<a href="<%# "NewsView.aspx?ID=" + DataBinder.Eval(Container,"DataItem.ArticleID") %>" target=_blank><%# DataBinder.Eval(Container,"DataItem.Title")%></a>
						
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="添加时间">
							<ItemTemplate>
								<%# DataBinder.Eval(Container,"DataItem.UpdateTime","{0:d}")%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="作者">
							<ItemTemplate>
								<%# DataBinder.Eval(Container,"DataItem.Author")%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="主页">
							<ItemTemplate>
								<%# DataBinder.Eval(Container,"DataItem.MY_Site")%>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Right" ForeColor="#000066" BackColor="White" PageButtonCount="5"
						Mode="NumericPages"></PagerStyle>
				</asp:DataGrid>
			</FONT>
		</form>
	</body>
</HTML>
