To redirect in a SharePoint sandbox is a nightmare. But don't panic, there is a way out. Create a literal control in your html as shown below: < asp : Literal ID = "litRedirect" runat = "server" /> and in the codebehind do this: litRedirect.Text = string .Format( " " , string .Format( "{0}?k={1}" , thesearchresult, txtSearch.Value.Trim()));
Cloud development @ its best. Snippets, ideas, latest, best practices etc.