calling a usercontrol from master page
<p>I have a master page and a user control</p>

<p>I have written an event in usercontrol and i want to call that event in my master page.</p>

<p>following are my codes</p>

<p>masterpage ----------- ( I THINK THIS PART IS CORRECT, IT'S  DOING WHAT IT IS SUPPOSE TO DO;CALLING THE USER CONTROL FUNCTION. )</p>

<pre><code>Dim App_Cl_tpPerson As New App_Cl_tpPerson

App_Cl_tpPerson.PersonAdd_Click(sender, e)
</code></pre>

<hr>

<p>usercontrol page ---------- ( I FEEL THE PROBLEM IS HERE )</p>

<pre><code>Public Sub PersonAdd_Click(ByVal sender As Object, ByVal e As EventArgs)
    Try

        If Req_No = 0 Then
            Req_No = Convert.ToInt32(Request.QueryString("reqID"))
        End If

    Catch ex As Exception

    End Try
End Sub
</code></pre>

<p>The error message is  "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT"
.</p>
