I need to pass values from a usercontrol to another WebForm (that will not include this usercontrol). Below is a sample code that i was working with. Keep getting error <BR><BR>"Object reference not set to an instance of an object" @ the objtxtLastName = CType(Context.Handler, uctlSearchFooter) line in Test.aspx.vb<BR><BR>What am i doing wrong?<BR><BR><BR><BR>===========================m yUserControl.ascx.vb================<BR><BR><BR>Pu blic MustInherit Class uctlSearchFooter<BR> Inherits System.Web.UI.UserControl<BR> Protected WithEvents btn_Search As System.Web.UI.WebControls.Button<BR> Protected WithEvents txt_LastName As System.Web.UI.WebControls.TextBox<BR> <BR><BR><BR>#Region "Variables"<BR> &#039;define variables that describe employee<BR><BR> Private _LastName As String<BR><BR>#End Region<BR><BR>#Region "properties"<BR> &#039;define public properties<BR><BR> Public Property LastName() As String<BR> Get<BR> Return txt_LastName.Text<BR> End Get<BR> Set(ByVal Value As String)<BR> txt_LastName.Text = Value<BR> End Set<BR> End Property<BR><BR>#End Region<BR><BR><BR>Private Sub btn_Search_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Search.Click<BR> <BR> Server.Transfer("Test.aspx", True)<BR><BR> End Sub<BR><BR>======================================= =========================<BR><BR>=========Test.asp x.vb=======================================<BR><BR ><BR>Public Class Test<BR> Inherits System.Web.UI.Page<BR> <BR> Public objtxtLastName As uctlSearchFooter<BR><BR>#Region " Web Form Designer Generated Code "<BR><BR> &#039;This call is required by the Web Form Designer.<BR> &#060;System.Diagnostics.DebuggerStepThrough()&#06 2; Private Sub InitializeComponent()<BR><BR> End Sub<BR><BR> Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init<BR> &#039;CODEGEN: This method call is required by the Web Form Designer<BR> &#039;Do not modify it using the code editor.<BR> InitializeComponent()<BR> End Sub<BR><BR>#End Region<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> &#039;Put user code to initialize the page here<BR> objtxtLastName = CType(Context.Handler, uctlSearchFooter)<BR> Response.Write(objtxtLastName.LastName + "<BR>")<BR> <BR> End If<BR> End Sub<BR><BR>End Class<BR>========================================= ============<BR><BR><BR>