When you change the URL parameters in the address bar, the system prompts that you are not authorized to perform the operation.

Source: Internet
Author: User
1. When you change the URL parameter in the address bar, the system prompts that you are not authorized to perform this operation.
Set the following CodeIn the page_load event
Try
{
String strtemp = request. urlreferrer. pathandquery;
}
Catch
{
Throw new exception ("You cannot modify the parameter! ");
}
Note: This method is a "partial door" method. If you modify the URL parameter, request. urlreferrer
It will get null. null certainly cannot have the pathandquery attribute, so an exception will be thrown.

2. When you access a page, open your window media to play the video.
You only need to add the following line of code to the page_load event.
Response. appendheader ("refresh", "0; url =" + mmsurl); // mmsurl is the video resource path of the MMS protocol.

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.