When the Asp.net page uses showmodaldialog, a new page is displayed in PostBack. solution:

Source: Internet
Author: User

When the Asp.net page uses showmodaldialog, a new page is displayed in PostBack. solution:

Today, I encountered a problem that puzzled me at the beginning. showmodaldialog open. aspx file, and then click a button on the page to save the page data to the database, and then open another page

After searching on Google for a while, I finally found the cause. click the button on the page to generate a PostBack event. After the server completes processing, it sends the updated data to the client to refresh the page. however, because the page is opened in modaldialog mode and cannot be refreshed, the window is used. open to open a new page.

It is very easy to solve this problem. Add the following sentence between the  

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.