Click here to Skip to main content
15,303,572 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used UserData Persistance to persist the data in postbacks, but i have binded it to the element of the form like
var oPersist=form1.oPersistInput;

oPersistInput is the Input type text.

But I dont want to bind it to element in the form instead i want to bind it body or form ids.

Can you please help me.
Updated 17-Aug-10 21:40pm

Hi Srilaxmijakki,

You can assign a value of body using above method, but this will not persist during postback. so you should have to use hidden field or inputbox instead of body attribute. because the hidden field or inputbox which already enabled viewstate property is true

Please do let me know, if you have doubt

Try using Viewstate variables, their value can be obtained on InitComplete[^] event.

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