472,102 Members | 1,088 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

Issue in accessing previous page's HiddenText value

I am accessing a string from the previous page's hidden text. While I am reading the string the only last character of the string is getting truncated. When I tried viewing the string in the previous page itself I could see the complete string.
I have formed the string in the main page using java code as bellow
document.formRpt.ReportForHdn.value = document.formRpt.ReportForHdn.value +"'"+document.formRpt.item(document.getElementById ('cbx'+i).id).value+"'"
and i tried accessing the hidden value from the next page as bellow
Session("detrpt_for") = Request.Form ("ReportForHdn")

While accessing the string the single quote thats is been given is missing.

I have given a workaround solution for this, as bellow
document.formRpt.ReportForHdn.value = document.formRpt.ReportForHdn.value +"'"+document.formRpt.item(document.getElementById ('cbx'+i).id).value+"' "


Can anyone suggest me which limitation is causing this??
Oct 11 '07 #1
1 1385
jhardman
3,406 Expert 2GB
Vinod,

I would guess that this is a javascript problem rather than an ASP problem. Just to be sure, you could list every data input sent to the page like this:
Expand|Select|Wrap|Line Numbers
  1.  dim x
  2. for each x in request.form
  3.    response.write x & ": " & request.form(x) & "<br>" & vbNewLine
  4. next
Go ahead and try it, but I bet the problem is in the javascript rather than the ASP.

Jared
Oct 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by raghav | last post: by
6 posts views Thread by daveyand | last post: by
4 posts views Thread by Alexander Adam | last post: by
8 posts views Thread by GaryDean | last post: by
7 posts views Thread by Virendra Maloo | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.