where the CMS. NET program Framework needs to be adjusted after upgrading from 2.0/3.5 to version 4.0

Source: Internet
Author: User

Question one:

Document.forms1.action Not available

Need to modify process document.forms[0]

After the. NET program Framework is upgraded from 2.0/3.5 to version 4.0, DOCUMENT.FORMS1 is not available

This means that all browsers support document.forms["Form1").

Microsoft before 4.0 is Document.form1 can also obtain,

After upgrading to 4.0, the value is document.forms["Form1"] or document.forms[0]

CMS encountered a problem for \configuration\system\upload.aspx unable to upload pictures

Modify \configuration\system\upload.aspx

Document.f_upload.action= "Upload.aspx? type=upload&path=<% Response.Write (Path); %>&upfiletype=<% Response.Write (Upfiletype); %>&parentpath=<% Response.Write (Parentpath); %> ";
Document.f_Upload.submit ();

Document.forms[0].action= "Upload.aspx? type=upload&path=<% Response.Write (Path); %>&upfiletype=<% Response.Write (Upfiletype); %>&parentpath=<% Response.Write (Parentpath); %> ";
Document.forms[0].submit ();

Question two:

Unable to submit and save news content

System.Web.HttpRequestValidationException (0x80004005): Error when submitting a form data

The following methods can not solve the problem,

Method 1. Add: <%@ page validaterequest= "false" in the. csaspx page%>
Method 2. Modify the Web. config file:
<configuration>
<system.web>
<pages validaterequest= "false"/>
</system.web>
</configuration>

Method 3:
<system.web>
< HttpRuntime requestvalidationmode= "2.0"/>
</system.web>

With this method, add the following sentence to the corresponding controller:
[ValidateInput (False)]

Where the CMS. NET program Framework needs to be adjusted after upgrading from 2.0/3.5 to version 4.0

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.