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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIRegisterPostBackEventHandler ErrorRegisterPostBackEventHandler Error
Previous
 
Next
New Post
5/11/2006 8:14 AM
 

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 10:22 AM
 

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 9:26 AM
 

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 9:22 AM
 
Yes, those helper functions will be included in 3.3/4.1.  Glad to hear you solved your problem.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIRegisterPostBackEventHandler ErrorRegisterPostBackEventHandler Error


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