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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN ContetnPane in a Server ControlDNN ContetnPane in a Server Control
Previous
 
Next
New Post
11/11/2011 8:49 AM
 

Hello all,

Is it possible to place the DNN ContentPane within another server control?
I want to place it this way because I have a 3rd party Control which should be holding the ContentPane for design and other reasons.
When I placed the ContentPane within a server control, the id of the ContentPane gets changed to ParentContainer_dnn_ContentPane.
So the ContentPane could not be identified, I tried to move the ContentPane in to the Server Control during run-time, which threw an exception "Cannot unregister UpdatePanel with id XXXX".
I have to have the ContentPane placed within the 3rd party server control I use, to get my site work. Can any one please give me a solution for the above problem?

Thanks and Regards
DJ

 
New Post
11/13/2011 1:08 PM
 
Changing the way that DotNetNuke content pane is handled is most likely not going to be an easy task, and might not event be possible. Pane Management within the core is how all modules are added to a page so changes to this process are going to be really hard.

I think a better question here is what exactly are you trying to accomplish? Why do you need to wrap this? Could you do it in another way?

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/14/2011 9:30 AM
 
Hello Mitchel,

I'll explain my requirement.

We have already developed a DNN site that contains a lot of module which is working in all the system browsers very well.

Our next step now is to make the same DNN site work with IPhone also, since all the business logic are the same, we are not willing to change or modify the current code-behind (of any module) file which would be a burden and also would make no sense to replicate the same codes all over again.

Also, since the app would be only compatible to IPhone, there is no need of a left and right pane.The ContentPane alone would do.

For the above reason, we have developed a skin file with only the ContentPane, so that if the request is from an IPhone this skin would be loaded with the ContentPane.

As we need the UI with all the basic IPhone features like scroll and all, it is easily possible to achieve the effects using the third-party-control ComponentOne, in which we should be placing the ContentPane within.

When tried to place the ContentPane(in the IPhone skin) within the ViewPort(ComponentOne),
DNN could not identify the ContentPane because the ClientID is being renamed to ViewPort_dnn_ContentPane.

I also tried to dynamically place the ContentPane into the ViewPort on the skin;s Page_Load event which works in some cases and fails in many.

We have modified the Skin Library of the DNN for now, so that the placing the ContentPane in the ViewPort will not be a problem which works like a charm, I still am not sure whether the idea is right to modify the skin library.

If the idea is correct and would not affect in any other way in the due courses, it;s fine. We can proceed with what we have done now, if not then as far as I know is to somehow wrap the ContentPane within the ViewPort.

Please let me know if I can proceed with the idea of modifying the Library file or if there is any other way to do it.

Thanks and Regards
Dhanajeyan.M
 
New Post
11/14/2011 10:57 AM
 
If you are using .NET 4.0 you could try to use the ClientIDMode property to turn off the INamingContainer issues that is changing the client id of the controls.  But this is a very risky situation regardless.

I would still say that this is not a good idea, but the above idea might get you closer to a solution.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/16/2011 7:13 AM
 
Hello Mitchel,

Thanks for the response , I am using .Net 2,0 , This project we are working on is almost more than 5 years, So changing the .Net Framework is out of question.

Anyways, Let me work on a little more and try to get an apt and safe way to accomplish the requirement and also would post the solution when I get one.

Meanwhile if any one else could find a solution sooner, please do let me know as what it is.

Thanks and Regards
Dhanajeyan.M
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN ContetnPane in a Server ControlDNN ContetnPane in a Server 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