An error occurred while executing server. Transfer in ihttphandler in ASP. NET. Http://codeadmin.blog.163.com/blog/static/115804

Source: Internet
Author: User

An error occurred while executing the server. transfer command.

Problem:

Today, I want to use the data submitted by form in login.htm to go to index. ashx, and then jump to group. ashx to retrieve the data of the form,

An error occurred while redirecting with context. server. Transfer.
The jump using context. response. Redirect is correct.

Why?

However, data cannot be obtained from redirect redirection,

Solution:

I used to query a lot of old materials online. I thought a lot of methods and I couldn't solve it. It took nearly two hours to get it done.

1. inherit the class of the second ashx file from system. Web. UI. Page. The problem is solved.

But I don't know why. Why?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.