Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using wizard to step into the controls. i am having three controls in a page. here the problem is i am unable to retrive the values of textbox controls after i move to next step and return.I guess the values are lost while postback occurs. i tried update panel,viewstate etc., but results negative.


can any one help me to fix the issue?
Posted
Updated 1-Mar-11 20:26pm
v2
Comments
Albin Abel 1-Mar-11 11:57am    
It supposed to work for the title if you go next and return. Are you asking about the user control values?

The Step changed will not be called when the page loads. So you have to assign it in page load event may be, I mean the first control tile on the page load
karthi34 2-Mar-11 4:00am    
i tried below code onActivestepchanged event, its working fine for all step1.ascx except the first one.

do i have to make any changes in the step.ascx page load event?
protected void WizardStepChanged(object sender, EventArgs e)
{
this.WZ1.HeaderText = this.WZ1.ActiveStep.Title;
}
AnupKumarYadav 2-Mar-11 2:30am    
Did You tried EnableViewState Poperty
karthi34 2-Mar-11 3:49am    
Thank u for the reply, i tried but results negtive

1 solution

Ofcourse you loose all the values after you leave the page. You must send them over to the next page and then back to the initial page when you return, using either GET of POST methods.

If you don't do that each time you return to the page you have an empty one, because a new empty instance of the page class in generated.


Read more here:
http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx#Y912[^]


--
Signature:
How old is the Orthodox Faith?
http://www.orthodoxphotos.com/history.shtml[^]

.
 
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