-
Notifications
You must be signed in to change notification settings - Fork 0
/
Search.aspx
66 lines (53 loc) · 2.95 KB
/
Search.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="height: 100%; background-color: #FFFFFF; width: 1450px; margin-left: 243px; margin-right: 0px;"
align="center">
<div style="height: 199px; width: 1123px; background-image: url('images/Awesome-Keyboard-Macro-Wallpaper-High-Definition.jpg'); margin-left: 130px;"
align="left"><br />
<br />
<br />
<br />
<br />
<br />
<br />
<div style="border-top: medium inset #C0C0C0; border-left: medium outset #C0C0C0; border-right: medium inset #C0C0C0; height: 63px; width: 556px; background-color: #FFFFFF; margin-left: 208px; margin-bottom: 0px;"
align="center">
<asp:Label ID="Label1" runat="server" Font-Bold="True"
Font-Names="Times New Roman" Font-Size="XX-Large" Text="Search Result"></asp:Label>
</div></div><br /><br />
<div align="center"
style="border-top: medium inset #C0C0C0; border-bottom: medium outset #C0C0C0; border-left: medium outset #C0C0C0; border-right: medium inset #C0C0C0; height: 100%; width: 1205px; margin-left: 67px; border-style: none inset outset outset; background-color: #FFFFFF;">
<br />
<br />
<br />
<asp:DataList ID="DataList1" runat="server"
DataSourceID="SqlDataSource1" RepeatColumns="3">
<ItemTemplate>
<a href='Blog1.aspx?id=<%# Eval("Post_ID") %>'>
<asp:Image ID="Image3" runat="server" Height="230px"
ImageUrl='<%# Eval("Image") %>' Width="312px" />
</a>
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" MaxLength="20" ReadOnly="True"
Text='<%# Eval("Post_Content") %>'></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Published_dte") %>'></asp:Label>
<br />
<br />
<br />
<br />
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:CodeSenseBlogConnectionString %>"
SelectCommand="SELECT Post_Content, Image, Published_dte, Post_ID FROM Post WHERE (Post_Content LIKE '%' + @search + '%')">
<SelectParameters>
<asp:SessionParameter Name="search" SessionField="Search" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</div>
</div>
</asp:Content>