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  |  

DotNetNuke Marketplace
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  RegisterPostBackEventHandler Error
Previous Previous
 
Next Next
New Post 5/11/2006 6:14 AM
User is offline Gjergji Spaho
13 posts
www.devalbania.com
10th Ranked


RegisterPostBackEventHandler Error 

I'm  using a user control in my web application and on its Page_Load i'm using the following code

ClientAPI.RegisterPostBackEventHandler(Me, "CaseAssigned", AddressOf CaseAssignedSrv, False)

When i run the app i get the following error

'System.Web.UI.ResourceBasedLiteralControl' does not allow child controls.

If I try Me.Page instead of Me in the first parameter i get another error

A control cannot modify its parents' control collections.

Thanks in advance!

 
New Post 5/11/2006 8:22 AM
User is offline Jon Henning
1623 posts
www.codeendeavors.com
5th Ranked










Re: RegisterPostBackEventHandler Error 

This is caused by the need for the __dnnVariable control to exist on the page.  The ClientAPI is trying to add it at this stage in the page lifecycle and ASP.NET doesn't like it.  I offer some insight into how I am working around this issue in this document (see the OnInit section - page 13).  In it you will see one solution is to add this control to your page.

<input id="__dnnVariable" type="hidden" name="__dnnVariable" runat="server">

If that doesn't work, then I offer another solution as well, though it is a little bit of a hack.

 


 
New Post 5/12/2006 7:26 AM
User is offline Gjergji Spaho
13 posts
www.devalbania.com
10th Ranked


Re: RegisterPostBackEventHandler Error 

I can't find neither ClientAPI.NeedsDNNVariable nor ClientAPI.RegisterDNNVariableControl methods on 3.2.2 version of DotNetNuke.WebUtility

Are this features going to be available only in the next version of DNN?

I already solved this problem by adding on the Page's PageLoad the following code

ClientAPI.RegisterClientVariable(Me, "_temp", "", True)

which i suppose is the same as adding the '__dnnVariable' input control in the page.

Thanks for your response

 
New Post 5/15/2006 7:22 AM
User is offline Jon Henning
1623 posts
www.codeendeavors.com
5th Ranked










Re: RegisterPostBackEventHandler Error 
Yes, those helper functions will be included in 3.3/4.1.  Glad to hear you solved your problem.
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  RegisterPostBackEventHandler Error
 


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.

 


Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com

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