Skip to main content

Posts

Showing posts with the label redirect

Page Redirect in a sandbox

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