using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Search : System.Web.UI.Page
{
	const String songsGridLabelForEmptySearchBox = "All songs in the music store:";
	const String songsGridLabelForNonEmptySearchBox = "Songs matching your search:";

	protected void Page_Load(object sender, EventArgs e)
	{
	}


	protected void ButtonSearch_Click(object sender, EventArgs e)
	{
		GridView1.DataBind();
	}
	protected void TextBoxSearchTerm_TextChanged(object sender, EventArgs e)
	{
		if (String.IsNullOrEmpty(TextBoxSearchTerm.Text))
		{
			LabelSongsGrid.Text = songsGridLabelForEmptySearchBox;
		}
		else
		{
			LabelSongsGrid.Text = songsGridLabelForNonEmptySearchBox;
		}
	}

}
