protected void btnSearch_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtSearchTerms.Text)) { string url = SEOHelper.GetForumSearchURL(txtSearchTerms.Text); Response.Redirect(url); } }