Ghyath Serhal
Ghyath Serhal

Reputation: 7632

Persist javascript changes on the server side

Does any body know how to persist javascript changes on the server side.
For example if I added items to a drop down list client side, how can i persist them in order to read them on the server side.
By the way, Telerik control have this feature.

Upvotes: 0

Views: 631

Answers (2)

SLaks
SLaks

Reputation: 888177

You need to tell the server what the Javascript did using AJAX or a hidden field.

Upvotes: 0

Jakob
Jakob

Reputation: 24370

Your questions doesn't contains any details, so I can only give you a generic answer:

You have to post the new data back to the server, either by using AJAX (I'd suggest using jQuery) or by sumbitting the new data in some field (preferably hidden) with a regular html-form (can be done in JavaScript or by having the user click "submit").

Upvotes: 1

Related Questions