469,307 Members | 1,958 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

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 1318
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
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.