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