Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds


  Asked By: Bridget    Date: Aug 27    Category: Sharepoint    Views: 1029

what could be the script in a webpart to redirect to
another to another page???



7 Answers Found

Answer #1    Answered By: Alisha Itagi     Answered On: Aug 27

Window.location = "newurl"

We have built a web part that doesn this, if you are interested

Answer #2    Answered By: Octavio Dotson     Answered On: Aug 27

Does anyone know if it is possible to Redirect a client browser to a different
web page  from within a custom web part?

Answer #3    Answered By: Judy Pittman     Answered On: Aug 27

I did a bog entry on this here,
www.toddklindt.com/.../Post.aspx?ID=48. Look for
the part about using a Content Editor Web Part to do redirection.

Answer #4    Answered By: Tricia Mullins     Answered On: Aug 27

thanks,but that's not quite what I mean. I'm writing a custom web part that
calculates a URL, that I want to send the user to ..
I've tried something like this which crashes:

string newURL;

newURL = "http:\\website?" + params;


Answer #5    Answered By: Himanshu Gohil     Answered On: Aug 27

You could render out the html meta refresh code with the new URL.

Answer #6    Answered By: Ashton Schroeder     Answered On: Aug 27

A couple things:

1) Use // instead of \\ for URLs J

2) Is the URL you are sending to within the same site? If not, you
need to do a Response.Redirect rather than a Server.Transfer - see

Answer #7    Answered By: Iris Ballard     Answered On: Aug 27

Excellent - Response.Reditrect works a treat. Thanks very much.

Didn't find what you were looking for? Find more on Redirect Or get search suggestion and latest updates.