Microsoft KB Archive/274852

= INFO: Data Is Truncated When You Use Remote Scripting to Pass Data =

Article ID: 274852

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Active Server Pages 4.0
 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.5

-



This article was previously published under Q274852



SUMMARY
When you use Remote Scripting to pass data, the data may be truncated after 2,083 characters, or the entire data may not be transferred. This problem occurs because Remote Scripting uses the QueryString property (GET method) to pass data. Because the GET method uses a uniform resource locator (URL) to pass data, and because Internet Explorer has a maximum URL length of 2,083 characters, your strings cannot exceed 2,083 characters (minus the actual length of the path and URL encoding).



Steps to Reproduce Behavior
  Create a new HTML page named TestRS.htm, and paste the following code:    Test Page 





 

 <BR> </TEXTAREA><BR> <INPUT type=&quot;button&quot; value=&quot;Click Here After typing in first textarea&quot; id=button1 name=button1 LANGUAGE=javascript onclick=&quot;return button1_onclick&quot;>

</BODY> </HTML> </li> <li> Create a new Active Server Pages (ASP) page named TestRSfunc.asp, and paste the following code: <%@ LANGUAGE=VBSCRIPT %> <% RSDispatch %>

<SCRIPT RUNAT=SERVER LANGUAGE=&quot;JavaScript&quot;>

var public_description = new ServerMethods; function ServerMethods {   this.AppendText = AppendText; }

function AppendText(myStr) {       return myStr+&quot;!&quot;; }

</SCRIPT> </li> <li>In your browser, view TestRS.asp.</li> <li>In the first textbox, input more than 2,000 characters, and then click the button.

NOTE: The character limitation may vary according to the length of your URL path.</li></ol>

<div class="references_section">