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  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
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!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  EditURL takes to wrong skin. PLEASE HELP!!!
Previous Previous
 
Next Next
New Post 2/22/2006 3:41 AM
User is offline Deepa Menon
1 posts
10th Ranked


EditURL takes to wrong skin. PLEASE HELP!!! 

I have developed a DNN 3.2 module with several ascx files. When I move to another control it shows on a page using wrong skin. Please Help

In Module Definitions I have defined my module controls of type view and for each I have given a proper key value expect my module main ascx for which the value is empty.

Module Definition:

Control Key           Title                   Source                                                                                                          Type

                                MdlMain             DesktopModules/CompanyName.Members/MdlMain.ascx              View      

AddMember          AddMember        DesktopModules/ CompanyName.Members/AddMember.ascx    View

In the code, I navigate between ascxs using Response.Redirect(EditURL("", "", ControlKeyValue")).

Code:

Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click

          

Response.Redirect(EditURL("", "", "AddMember"))

End Sub

This code takes me to the following link:
http://localhost/DotNetNuke/Test/tabid/56/ctl/AddMember/mid/373/Default.aspx

Using EditURL I can navigate to another control (and it works fine) but the skin being used is the admin skin and not the page skin. I need to use the same skin for all my ascx files but using EditURL all my ascx files (which have ControlKey value) have the admin skin while only my first page uses the page/module skin .

I have tried another option (using the same module definition) which is “NavigateURL”, this keeps the same skin for me but it shows empty page instead of the requested control page.

Code:

Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click

Response.Redirect(NavigateURL(TabId, "AddMember"))


End Sub

This code takes me to the following link:
http://localhost/DotNetNuke/Test/tabid/56/ctl/AddMember/Default.aspx

For our DNN site we have 2 skins and 2 container styles. One for USER Pages and other one for ADMIN Pages. Is it possible to keep same skin (user skin) for all my module ascxs without changing to the admin skin? Also which function should I use to move between ascxs EditURL or NavigateURL as I mentioned before EditURL redirects me to the write page but with admin skin and the NavigateURL gives me an empty page with the same module skin.

Please advice.

 
New Post 2/24/2006 3:39 AM
User is offline Leandro Montedoro
23 posts
10th Ranked


Re: EditURL takes to wrong skin. PLEASE HELP!!! 

Check this
http://forums.asp.net/1154003/ShowPost.aspx

 
New Post 2/28/2006 11:04 AM
User is offline Stefan Kamphuis
316 posts
www.superska.net
8th Ranked






Re: EditURL takes to wrong skin. PLEASE HELP!!! 
If you consider that EditURL() is meant for links to Edit pages, it makes sence that you'll get the admin skin there. If you want the user (not the administrator or editor) to go to another control with the portal skin, don't use editUrl, but use NavigateURL instead.

Hope this helps.

Greetz,
Stefan Kamphuis
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  EditURL takes to wrong skin. PLEASE HELP!!!
 


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.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

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