Click here to Skip to main content
16,019,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need help on javascript....

i want to increase the integer value...
for example in the first page, the value is 1... when i go to the next page the value will increase into 2...

how i want to get the value of the first page and add it at the second page...

thank for ur attention....
Posted

1 solution

how i want to get the value of the first page and add it at the second page...
You can use querystrings.

When you are navigating to the next page, append the value in the URL. Get it in the next page and act accordingly.
For sample example of it's working: Passing variables between pages using QueryString[^]
 
Share this answer
 
v2
Comments
LearningPerson 27-Mar-11 3:12am    
in the sample said that i need to use asp.net to make the QueryString works....but i don't use asp.net in my project.
Sandeep Mewara 27-Mar-11 3:24am    
You don't need ASP.NET for query strings. Just use the request-Response-Querything concept.

Add the querystring to URL and then use Response to get the value back. Don't worry of ASP.NET part.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900