Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedPostback Creates New View InstancePostback Creates New View Instance
Previous
 
Next
New Post
12/30/2010 2:01 PM
 
I'm not sure this is the correct forum to post this.  Apologies if it isn't.

It appears each time I break in my module's View object Page_Load method I have a new instance of the View.  I verified this by placing a break point int he View constructor..  The page controls do not have data that was originally posted because a new instance of the View was created, either by DNN or ASP.  If I understand it correctly, I will need to save data elements at the App or Session level in order to make the input fields sticky and check for a post back in the page load.
 
New Post
12/30/2010 4:24 PM
 
no, you do not need to persist values, asp.net server controls will automatically rebuild page elements via the viewstate/controlstate values. As to your problem, I'm not sure what it might be, please ensure that you are not using page.loadcontrol, page postbacks should be via asp.net postbacks or navigateURL usage.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/3/2011 9:53 AM
 
I checked my approach and found I was using the ASP page events.  Even after removing those the text fields were not sticky.  What I found was in response to a Query command on my page I invoked a page redirect to force and update of my grid control.  This appears to have the same effects as if I had freshly opened a new link to the page.  It created the view anew.  I removed the following code and invoked a Rebind() on the grid control to force its update.  All works perfectly now.  Thanks for the help.

this.Response.Redirect(Globals.NavigateURL(this.TabId), false);
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedPostback Creates New View InstancePostback Creates New View Instance


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out