protected void btnGo_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtCompanyNumber.Text)) { string url = UrlUtils.AddParameterToUrl(Request, "type", "company"); url = UrlUtils.AddParameterToUrl(url, "number", txtCompanyNumber.Text); Response.Redirect(url); } if (!string.IsNullOrEmpty(txtDealNumber.Text)) { string url = UrlUtils.AddParameterToUrl(Request, "type", "deal"); url = UrlUtils.AddParameterToUrl(url, "number", txtDealNumber.Text); Response.Redirect(url); } }