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.0Having a details page on the View pageHaving a details page on the View page
Previous
 
Next
New Post
4/27/2009 2:57 AM
 

Hi everyone,

I am creating a module for displaying roster for a sports team. So, on the View page, I have a datagrid of all of the rosters. Once I click on a roster, it goes to the Edit page where I display details of the roster. That is working fine, but once I set up the rights on the page itself, I found out that I have to enable the "All users" rights for Edit mode for everyone. And that is where my issue is... since in the Edit page I also have the ability to change a roster's information. So, I belive that I need a "master-details" functionality on the View page. In that matter, I have tried the following.

In my View page I have a multiview where one view is for the list (gridview) and the second view is for the details of the roster. Then if I click on a roster, then I set the details view as the active one. Then I have a back button on that page which set the active view to the grid. I have tried to store a variable in view_state (bool ShowGrid) to decide what to show in the Page_Load. That did not work, so then I tried to use session variable for the ShowGrid variable and do a response.redirect. That did not work either. Then finally I tried to store the choice in the Settings for the page, but no success there either. Meaning, if I am in the View mode, it does not show the correct view based on any of these variables. However, if I switch to Edit mode, then those variables works.

So, is there something that is blocking using a session variables, e.g. in the View mode of a DNN module? Or is there a better way to approach such functionality/pages?

Any help would be highly appreciated.

Regards,

Geir

 
New Post
4/27/2009 5:30 AM
 

Hi everyone,

I found a solution for my problem.

In the gridview I have a hyperlink a user can click on to get to the details view. In the navigateurl value I put in the following:

DotNetNuke.Common.Globals.NavigateURL(TabId, "View", "UserID=" + (int)DataBinder.Eval(Container.DataItem,"UserID"))

Then in the page_load event I put the following:

 

 

if (this.Request.QueryString["UserID"] != null)else

mwPlayers.SetActiveView(vPlayerGrid);

So, basically, we are just redirecting to the page with a querystring value. On page load, you can decide what view to show based on the querystring value. So, works good for me.

Regards,

Geir

mwPlayers.SetActiveView(vPlayer);

 

 
New Post
4/27/2009 6:48 AM
 

A small correction,

 

The navigate url should be the following to make it work:

 

NavigateUrl

='<%# DotNetNuke.Common.Globals.NavigateURL(TabId, "", "UserID=" + (int)DataBinder.Eval(Container.DataItem,"UserID")) %>'

 
New Post
4/27/2009 7:38 AM
 

Hi again,

Just a update as I spent some time on this now.

Remember to set the "Cache Time (sec)" to 0 on the page settings. If not, this will not work properly.

 

Regards,

 

Geir

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Having a details page on the View pageHaving a details page on the View page


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