26 lines
783 B
C#
26 lines
783 B
C#
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
// PARTICULAR PURPOSE.
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
public partial class _Default : System.Web.UI.Page
|
|
{
|
|
protected void Button1_Click(object sender, EventArgs e)
|
|
{
|
|
Response.Redirect("search.aspx?q=" + searchBox.Text, true);
|
|
}
|
|
protected void Button2_Click(object sender, EventArgs e)
|
|
{
|
|
Response.Redirect("search.aspx?type=photos&q=" + searchBox.Text, true);
|
|
}
|
|
}
|