Click here to Skip to main content
15,991,949 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
C#
var oPersist=form1.oPersistInput;
oPersist.setAttribute("sPersist",oPersist.value);
oPersist.save("oXMLBranch");


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.
Posted
Updated 17-Aug-10 21:40pm
v2

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

Thanks,
Imdadhusen
 
Share this answer
 
Try using Viewstate variables, their value can be obtained on InitComplete[^] event.
 
Share this answer
 

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