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.0Multiview controlMultiview control
Previous
 
Next
New Post
7/21/2006 6:28 AM
 
I have developed a user control using VS2005 Multiview control for a dnn  portal . I have 3 different views that the user can navigate by passing some parameters from a form  .
The control is working  fine , that means that i can navigate from view1 to view3 . The problem is that when i change the current language , the  control returns to view1  .
MultiView1.GetActiveView doesn't provide any help , neither MultiView1.SetActiveView .

The thing that troubles me is that when i refresh the page , and for example i am in view 2 , when the page posts back i get the correct view , view 2 .

Any good idea ? Thanks for your help in advance.
 
New Post
7/21/2006 7:56 AM
 
darkjudg wrote
I have developed a user control using VS2005 Multiview control for a dnn  portal . I have 3 different views that the user can navigate by passing some parameters from a form  .
The control is working  fine , that means that i can navigate from view1 to view3 . The problem is that when i change the current language , the  control returns to view1  .
MultiView1.GetActiveView doesn't provide any help , neither MultiView1.SetActiveView .

The thing that troubles me is that when i refresh the page , and for example i am in view 2 , when the page posts back i get the correct view , view 2 .

Any good idea ? Thanks for your help in advance.

To be more specific, i would like to add some code in order to save the state of multiview control , that is to display the same view as when the user decided to change the language from dnn . i tried with session but no luck .

it will be appreciated very much , if someone could explain exactly what happens when the language is changed . The page is being postback and the control is being created from scratch ? If this is hppening then the multiview1.activeindex gets the starting value 0 ?

i don't know if i am in the right direction . Thanks
 
New Post
7/25/2006 6:13 AM
 

You can save the state in any persistance medium depending on your needs and upon page reload load it and set it to the control.

- Context - goes across one request
- Viewstate - goes across 2 requests (enter - work - postback - work)
- Session - goes across one user session (each user has it's own session) - until it either expires or user closes his browser
- Cache - stored until it expires or the application is restarted - and is shared amongst all users
- Database - You can store it quickly with ModuleSettings (or TabModuleSettings)

 

HTH


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiview controlMultiview control


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