locked
Using HTTP Handler to redirect users of ASPX page to ASP url RRS feed

  • Question

  • Hi,

    for an existing project in Prod environment which has a classic asp page, the page needs to be re-written using ASP.NET Webforms. so, i have created a new project with a .ASPX page, re-written successfully. now, the project with classic ASP page is in Prod environment. end-users do not have the ability to change the URL to .aspx. So, for the new project, we are using a http handler to redirect control to new .aspx page when the end-user makes a call to .asp page. but this is not working. when the end user makes a call for classic ASP page, the response is a blank page. the test environment is IIS server 8 on Windows server 2012. we have created a handler in .cs file as class library and referenced it in the web config. and also, when we make a call to classic asp page , the page will not be there in the new project, but the url (url will be pointing to .asp page) should go to the handler and call the new .aspx page.

    could any one please let me know where i am going wrong.

    if any more information required, let me know. 

    using http handler approach is mandatory for accomplishing this.

    please help / guide.

    • Moved by Sabah ShariqMVP Friday, January 27, 2017 2:04 PM Moved From Visual C# - Related to ASP.Net
    Friday, January 27, 2017 1:57 PM

All replies

  • Hi Venkat,

    This is Visual C# forum. As your issue is related to Web, please ask your question into ASP.Net forum for getting quick response. I am moving your thread to off-topic.

    https://forums.asp.net/

    Your understanding and cooperation will be grateful.

    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Friday, January 27, 2017 2:03 PM