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...Administration ...Administration ...Something wrong with OnPreRender...Something wrong with OnPreRender...
Previous
 
Next
New Post
6/3/2008 9:04 AM
 

Hello :)

I am using 2 custom web controls. The one is a custom image that gets the image from DB and writes some javascripts to execute on click.

The second one, is a table that contains some info and the custom image (ctrl1)

When using then in an empty page (with or without Ajax), everything works fine. By clicking on the image, a js scripts executes, and displays flash gallery on the page with many other images.

When using the second control in DNN 4.8.2, it displays everything fine, however when trying to execute the js, it could not find it in the page...

The js is created and added to the page on ctrl1 OnPreRender function...

 

Anyone can help, because I am getting frastrated here...

 
New Post
6/3/2008 2:58 PM
 

Wizard

We have had the same problem 2 times:

  • when control creates dynamically
  • when AJAX uses with control

In both situations we had to Register JavaScript with "Page.RegisterStartupScript" construction separately from the control. Hope it helps.

Sergey

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Something wrong with OnPreRender...Something wrong with OnPreRender...


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