|
Response.Redirect ((new StringBuilder (PageBase.UrlBase))
.Append ("/ searchresults.aspx? Type =")
.Append (index)
.Append ("&fullType =")
.Append (Server.HtmlEncode (SearchDropDownList.Items [index] .Text))
.Append ("&text =")
.Append (Server.UrlEncode (searchText)). ToString (), false);
In the above code, why add Response.Redirect ((new StringBuilder (PageBase.UrlBase)) and then add .Append instead of placing .Append in redirect brackets? I think the following should be correct:
Response.Redirect ((new StringBuilder (PageBase.UrlBase)
.Append ("/ searchresults.aspx? Type =")
.Append (index)
.Append ("&fullType =")
.Append (Server.HtmlEncode (SearchDropDownList.Items [index] .Text))
.Append ("&text =")
.Append (Server.UrlEncode (searchText)). ToString (), false)); |
|