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"**
}
}
}
Rahul KhannaPosted Mar 19, 2014, 12:15 PM
Lakshmanan Sethu SankaranarayanPosted Mar 19, 2014, 4:23 AM