-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearchT2.aspx
executable file
·42 lines (42 loc) · 2.27 KB
/
SearchT2.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
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SearchT2.aspx.cs" Inherits="SearchT2" Title="LabDMS - Broad Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SecondBar" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<div id="body">
Query:<asp:TextBox ID="CommonSearchTextBox" Runat="server" Width="390px"
ontextchanged="change"></asp:TextBox>
<script runat="server">
void change(Object sender, EventArgs e)
{
Label1.Text = ((TextBox)sender).Text;
}
void Type1_Button(Object sender, EventArgs e)
{
Response.Redirect("Search.aspx?T2="
+ Server.UrlEncode(TextBoxQuery.Text));
</script>
<asp:Button ID="SearchButton" runat="server" Text="Search"
Width="137px" OnClick="T2_Click" />
<asp:Button ID="Button1" runat="server" Text="Use Regular Search >>"
Width="120px" OnClick="Type1_Button"/><br />
<asp:Label ID="Label1" runat="server" Text="Query Entered:" Visible="True"></asp:Label>
<br /><br />
<b>Results:</b><br />
<asp:Label ID="Results" runat="server"
TextMode="MultiLine" Width="760px" BackColor="#F7F6F2"
BorderColor="#1740B8" ForeColor="Black">Results will be posted here!</asp:Label>
<br />
<asp:HyperLink ID="Home_Bottom" runat="server" Font-Size="Small"
NavigateUrl="~/Default.aspx"><< Back to Home</asp:HyperLink>
|<asp:HyperLink ID="HyperLink1" runat="server" Font-Size="Small"
NavigateUrl="~/Search.aspx">Regular Search >></asp:HyperLink>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetAdById"
TypeName="AdsDataComponentTableAdapters.AdsDataAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="Label1" DefaultValue="" Name="Id"
PropertyName="Text" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</asp:Content>