Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Any good ideas for remembering settings on previous .ascx controls?
Previous Previous
 
Next Next
New Post 7/7/2006 9:21 AM
User is offline Mike Grace
206 posts
www.computastat-group.co.uk
9th Ranked


Any good ideas for remembering settings on previous .ascx controls? 
    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 9:42 AM
User is offline Charles Nurse
2915 posts
5th Ranked










Re: Any good ideas for remembering settings on previous .ascx controls? 
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
DotNetNuke Trustee,
Senior Architect, DotNetNuke Coporation
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
See my Blog for Articles on .NET, DNN and Module Development

View my Blog
 
New Post 7/10/2006 2:19 AM
User is offline Mike Grace
206 posts
www.computastat-group.co.uk
9th Ranked


Re: Any good ideas for remembering settings on previous .ascx controls? 
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 7:38 AM
User is offline Mike Grace
206 posts
www.computastat-group.co.uk
9th Ranked


Re: Any good ideas for remembering settings on previous .ascx controls? 
Modified By Mike Grace  on 7/18/2006 9:39:15 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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Any good ideas for remembering settings on previous .ascx controls?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP