Author: digsy | Posted on: 10/2/2008 4:54:22 AM | Views : 411

I am trying to pass a value from a webusercontrol to its parent page. I have lots of examples but none of seem to quite work for me.
I thought I was pretty close but when I run the code below I get an "Object reference not set to an instance of an object." Error for the line in the parent page that states:
BubbleControl.BubbleClick += new EventHandler(WebForm1_BubbleClick);

Can someone tell me what I am doing wrong ?

Webusercontrol

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
<asp:Button ID="B ...

Go to the complete details ...