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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

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


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
1622 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
1622 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.

 


Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com

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