Hi All
I have a user control containing a scheduler in the ascx pageload event I get all the data for the scheduler
I'm having trouble maintaining state across postbacks.
Using the page loads as shown whenever I do a postbask the controls disappear, if I move the loader outside of the page.ispostback code then they appear but as expected I loos all user completed fields (on a separate edit area)
What am I doing wrong?
Andy
I have a user control containing a scheduler in the ascx pageload event I get all the data for the scheduler
If Not Page.IsPostBack Then
LoadSessions(JobPlan_ID, Cycle)
Me.lblCycle.Text = "Week " & Cycle
End If
The control is called from my aspx which loops to create the correct number of instance on the control (The Load Session()).
If Not Page.IsPostBack Then
LoadWeeks()
End If
I'm having trouble maintaining state across postbacks.
Using the page loads as shown whenever I do a postbask the controls disappear, if I move the loader outside of the page.ispostback code then they appear but as expected I loos all user completed fields (on a separate edit area)
What am I doing wrong?
Andy