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  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Providing a key to the View Control
Previous Previous
 
Next Next
New Post 5/14/2008 9:56 AM
Resolved
User is offline r_honey
107 posts
9th Ranked


Providing a key to the View Control 

When I provide a key to my View control, it simply doesn't gets rendered. I need to refer the View control by its key from other controls.

So, is it possible to provide a key to it??? Otherwise, how do I make a direct to it from other controls, which are not necessarily Edit controls (My searching revealed that using EditUrl() without any arguments takes to the View Control from Edit control, but if the referring control is not a View Control)???

Morover, is it possible to have multiple view controls, and navigate between them in a single module???

 
New Post 5/21/2008 1:02 PM
User is offline Mikael Ljunghorn
7 posts
10th Ranked


Re: Providing a key to the View Control 

 

Hi,

I'm searching for the same answer but for another reason.
I would like to be able to specify a title for the view control in the resource file.
You specify the item in the resource file like 'mycontrol_edit.text' but for the view control this doesn't work (mycontrol_.text   ???)

For multiple view controls I suggest you to have a look at the below:
Dynamic Load User Controls in DotNetNuke
opensource.indyneinc.com/home/Support/DeveloperExchange/TehnicalPublication/tabid/67/articleType/ArticleView/articleId/6/Dynamic-Load-User-Controls-in-DotNetNuke-.aspx

I have used it with success earlier. I have used it more like a menu control. Not sure if that's your goal?
www.jarfallahockey.com/Ungdom/Team94/Team94sV%C3%A5rcup2008/tabid/263/PageID/0/Default.aspx

 
New Post 5/22/2008 8:34 AM
User is offline Mitch Sellers
5075 posts
www.mitchelsellers.com
3rd Ranked




Re: Providing a key to the View Control 

You can redirect from one view control to another like this.  If "ControlName" is the name of your deired view control.

C#

Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(this.TabId, "ControlName", "&mid=" + this.ModuleId));

VB

Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(me.TabId, "UWComments", "&mid=" + me.ModuleId))


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
New Post 5/25/2008 5:59 AM
Accepted Answer 
User is offline r_honey
107 posts
9th Ranked


Re: Providing a key to the View Control 

Thanx mitch for answering. However, my question was how to redirect to the default View Control. As the default control does not has a key, we cannot provide it in NavigateUrl().

However, I found out the solution. Using NavigateUrl() as is without providing any control key from anywhere in your module takes you to your default View Control. As for other view Controls, they have a key, so you can provide them in the NavigateUrl() method.

However, as we discussed it on your forums also, at any point of time while providing a Control key to NavigateUrl(), you also have to provide the unique Module Identifier  (ModuleID) of your Module, otherwise DNN does not know in which module to look for the control, and renders a Blank screen.

That can easily be corrected as you showed above by using a ModuleID parameter to NavigateUrl(), but when you do that, only your View Control gets rendered without other modules on the page that also come with the default View Control of your module.

The only solution I have found out to this solution is to load your View Controls dynamically (you can also do this with your Edit controls if you want other Modules to remain visible with your Edit Control). DNN assumes that by default, Editing is a sensitive task, and user should concentrate only on Editing the current module at a time, so it does not render other modules, which causes a problem with other View Controls also.

Dynamic loading is the only solution, which is not very difficult. The method has been presented in the second post above, as well as in Michael Washington's adefwebserver.com DNN Help site, which I should confess is very helpful, and helped me a lot to speed my my DNN learning curve. Only wished Michael had a forum or atleast some feedback system there, where users can request additional tutorials (if not a full-fledged forum)!!!

 
New Post 5/25/2008 8:11 AM
User is offline r_honey
107 posts
9th Ranked


Re: Providing a key to the View Control 

And yes, I forgot to mention that I read it somewhere (probably in Wrox Professional DNN from Core Team members) that the default View control of your module cannot & shouldnot have a key assigned to it.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Providing a key to the View Control
 


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.

 


Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net

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