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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Any good ideas for remembering settings on previous .ascx controls?Any good ideas for remembering settings on previous .ascx controls?
Previous
 
Next
New Post
7/7/2006 11:21 AM
 
    Hi,

I am developing a module which has 4 view screens and a 5th edit screen.

Each one loads the next in a manner similar to a wizard and each one has a grid.

I want to have "Back"/ cancel buttons buttons on each page so that when the previous control loads, I can reinstate which row was selected and what page the grid was previously on similar to the browsers back button but "live" e.g. if I edit a record at the last stage then when I click on my button it will reload the previous page and refresh the grid.

The browsers back button only restores a cached page.

I know I can put all these settings in the URL or Session vars but I am wondering if there is an easier way or whether DNN has facilities for this.

Also, how do other people deal with this issue?


Regards


Mike
 
New Post
7/7/2006 11:42 AM
 
Well, I would do this in one of two ways.

1. Use the core Wizard Framework (see Admin/Portal/Sitewizard.ascx as an example).  It uses asp:panels for each "page".

2. Create your own master control, which has 4 panels.  place one of your controls in each panel.  Control the Forward/Back behaviour by making the relevant panel visible.  As all the controls are in the control tree at all times, you should have access to relevant properties/method of any of the controls, by making them public.  In fact, you have programmatic acess to the values of all the controls that are on your User Control as well.

If you have 3.3 or 4.3, you can see this behaviour in ManageUsers.ascx.vb (the page displayed is controlled by a tabstrip across the top, but the principle is the same), which contains a User (User.ascx), Membership (Membership.ascx), Password (Password.ascx), Roles (SecurityRoles.ascx) and profile (Profile.ascx), all of which are PortalModuleBase controls.

Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
7/10/2006 4:19 AM
 
Thanks,

I will try each of those ways and see which one suits me best.

It's easy when you know how!


Mike

 
New Post
7/18/2006 9:38 AM
 
Sorry for the delay.

I am trying to get item 2) working.

How can I make the controls public?

ASP.NET 2/VS2005 hides the control declaration code.

I have looked at the ManageUsers.ascx page and have noticed that the main page refers to controls on other usercontrols. VS puts a blue line underneath with a message saying 'not defined' and yet the site compiles and runs.

I am trying the same thing and I get build errors. (Using 4.0.3)

Is there a build/compile flag set somewhere?

Regards

Mike

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Any good ideas for remembering settings on previous .ascx controls?Any good ideas for remembering settings on previous .ascx controls?


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