Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remember image positions

Status
Not open for further replies.

johnv20

Programmer
Sep 26, 2001
292
US
Hi,
I have a page where the user can move a number of images on the screen. Is there any method of storing these positions on the server side so that they are remembered in a post back ?
 
You'll have to store the co-ordinates in a form variable (you could put it in a hidden input tag if you don't want the user to see it) then you can retrieve them from the Request.Form class and set the image accordingly.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I know this is a dumb question but how exactly do I do this ?
 
Well, in your ASP.NET page, create a hidden element:
Code:
<input type="hidden" id="myHiddenVar">
Then, set it's value with the relevant details:
Code:
document.getElementById("myHiddenVar").value = "myValue"
Then, as I said above, simply use the Request.Forms class to retrieve it and then populate the image position using it's value.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top