Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 274852 - Last Review: October 23, 2003 - Revision: 3.0
INFO: Data Is Truncated When You Use Remote Scripting to Pass Data
This article was previously published under Q274852
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:
<HTML>
<HEAD>
<TITLE> Test Page </TITLE>
<script LANGUAGE="JavaScript" src="_ScriptLibrary/RS.HTM"></script>
<SCRIPT LANGUAGE=javascript>
<!--
RSEnableRemoteScripting("_ScriptLibrary");
function button1_onclick() {
MyTextArea=textarea1.value;
RemoteVar=RSExecute("testRSfunc.asp","AppendText",MyTextArea);
textarea2.value=RemoteVar.return_value;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA rows=20 cols=101 id=textarea1 name=textarea1></TEXTAREA><BR>
<TEXTAREA rows=20 cols=101 id=textarea2 name=textarea2></TEXTAREA><BR>
<INPUT type="button" value="Click Here After typing in first textarea"
id=button1 name=button1 LANGUAGE=javascript onclick="return button1_onclick()">
</BODY>
</HTML>
- Create a new Active Server Pages (ASP) page named TestRSfunc.asp, and paste the following code:
<%@ LANGUAGE=VBSCRIPT %>
<% RSDispatch %>
<!--#INCLUDE FILE="_ScriptLibrary/RS.ASP"-->
<SCRIPT RUNAT=SERVER LANGUAGE="JavaScript">
var public_description = new ServerMethods();
function ServerMethods()
{
this.AppendText = AppendText;
}
function AppendText(myStr)
{
return myStr+"!";
}
</SCRIPT>
- In your browser, view TestRS.asp.
- 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.
For additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
208427Â
(http://kbalertz.com/Feedback.aspx?kbNumber=208427/EN-US/
)
INFO: Maximum URL Length Is 2,083 Characters in Internet Explorer
254786Â
(http://kbalertz.com/Feedback.aspx?kbNumber=254786/EN-US/
)
PRB: Query String Truncated
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
| kbinfo kbremoteprog kbscript KB274852 |
Retired KB Content DisclaimerThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate