473,382 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

after reloding the page spaces between words is removing

Hi,

In asp page I stored the textbox values in one javascript variable:
var strline1side1 = document.frmartwork.side1textbox1.value;
Then I save the same variable in one javascript cookie variable:

document.cookie="lineside1="+strline1side1+";path=/;";

Now after this I read this cookie in asp variable
strtextbox1 = request.Cookies("lineside1")

and assigned this variable to test value of textbox.

<input type="text" value="<%=strtextbox1%>" id="side1textbox1">

If I write "this is test" in textbox then after reloading the page it showing me "thisistest" space is removing .

Why this is happening.

Please help me
Sep 29 '11 #1
1 1594
jhardman
3,406 Expert 2GB
I bet the problem comes when you save the cookie. Try using a replace statement to replace the spaces with "+". It looks like that part is done with javascript, so I am not going to try to help with that (not a javascript expert). But if what I think is happening, replacing the spaces with plus signs in the cookie will correct the issue.

Jared
Sep 30 '11 #2

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

Similar topics

0
by: b.orsini | last post by:
Is it possible to know if a row is the first row in a table after a page break ? After a page break, the header is put in the page ( it's ok ) but in some case i must display the first row...
1
by: Ed | last post by:
Don't know where else to ask this question...AFS people tell me they can't answer JavaScript questions...it's a little of both with vbscript mixed in. I have a series of select statements such...
3
by: Ghanathe | last post by:
Hello!!! Can any one tell how to retrieve user name and other details like first name,address,contact no. and so on.... and display in welcome page after login page using c# and sql server...
3
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As...
6
by: =?Utf-8?B?Rmx5Z3V5?= | last post by:
I am trying to keep from reloading my XmlDocument every time my page reloads. To do this I am using ViewState. System.Xml.XmlDocument myDataXmlDoc = new System.Xml.XmlDocument();...
3
by: myNameIsChris | last post by:
Sporadically, I am receiving "out of memory" errors on my websites. In my performance monitor (Debug Diagnostic Tool), I can watch virtual bytes skyrocket until it causes an "out of memory" error on...
1
by: myNameIsChris | last post by:
Sporadically, I am receiving "out of memory" errors on my websites. In my performance monitor (Debug Diagnostic Tool), I can watch virtual bytes skyrocket until it causes an "out of memory" error on...
1
by: pkeerthi86 | last post by:
Which event do you use to run something after the page has finished loading?  onfinished  onload  onunload  oncomplete
4
oranoos3000
by: oranoos3000 | last post by:
hi can i change id attribute an element with below command in jquery $("#error").attr("id", "warning"); i know this code is not reasonable but i want to know change id's element after...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.