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 ForumsClientAPIClientAPITab Strip Control - register a postbackeventTab Strip Control - register a postbackevent
Previous
 
Next
New Post
6/10/2007 1:52 AM
 

Hello,

I'm using the tab strip control, and i want to find out how i can fire a postback by registering it before loading the tab.

I tried these lines of code to register a postbackevent

line 1: dim deleg as New DotNetNuke.UI.Utilities.ClientAPIPostBackControl.PostBackEvent(AddressOf Dummy_Function)
line 2: DotNetNuke.UI.Utilities.ClientAPI.RegisterPostBackEventHandler(dummy_Control, "dummy", deleg, False)

But i get this error: "Object reference not set to an instance of an object."

with stack trace: at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Page objPage, String strVar, String strValue, Boolean blnOverwrite) at DotNetNuke.UI.Utilities.ClientAPI.RegisterPostBackEventHandler(Control objParent, String strEventName, PostBackEvent objDelegate, Boolean blnMultipleHandlers) at DummyForm.Dummy_Tab_SetupDefaults()

I'm really new to this, if someone can point to me to the right direction i would appreciate it

Thanks in advance

 
New Post
6/11/2007 1:34 PM
 

I am confused as to what you are trying to solve.   It sounds like you want a callback to occur, before a tab loads.  Are you using the DNN TabStrip or another control.  If DNNTabstrip, what rendering mode are you using?  If I had to take a guess at your error, I'd say you are calling the registerpostbackeventhandler before teh dummy_control is attached to the page.  For more information see the following links.

This document covers the DNNTabstrip.

This document covers client callbacks.


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPITab Strip Control - register a postbackeventTab Strip Control - register a postbackevent


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