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:
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()));
Comments