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  |  

telerik -- supercharge your DNN websites
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


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
2887 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.

 


UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network

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