TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rahul Khanna
NA
236
0
How to redirect to new page from sharepoint httphandler.
Mar 18 2014 12:31 PM
Hi,
Using Httphandler I am trying to redirect to download.aspx page but always I am getting the "This page can't be displayed" error. Here is my code:
public class MyHandler:IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
if(condition satisfies)
{
//do operation
}
else
{
string myurl = SPContext.Current.Web.Url + "/_layouts/download.aspx?" + "SourceUrl=" + currentItemUrl + "&FldUrl=" + currentFolderURL + "&Source=" + sourceURL;
context.Response.Redirect(myurl);
**
Its redirecting to the download.aspx page but always giving the error"This page can't be displayed
"**
}
}
}
Reply
Answers (
2
)
find manager of employee in sharepoint workflow using VS2010
Sharepoint site design