Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2012, 01:06 AM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default calling a user control event from master page - --- error!!!

Hello all,,

I have a master page and a user control

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

following are my codes

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

Dim App_Cl_tpPerson As New App_Cl_tpPerson

App_Cl_tpPerson.PersonAdd_Click(sender, e)

-----------------------------------------------------------------------------------------------------------------------------------------

usercontrol page ---------- ( I FEEL THE PROBLEM IS HERE )

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

The error message is "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT"

Thanks

Nick
.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Page - User Control communication Aaron Edwards ASP.NET 2.0 Basics 8 March 7th, 2008 08:52 AM
User Control not rendering in Master Page skmcusp ASP.NET 2.0 Basics 2 September 10th, 2007 04:58 PM
Access Master page control from Content page. angshujit ASP.NET 2.0 Basics 3 January 11th, 2007 06:20 AM
how to reference user control in master page.. gbianchi ASP.NET 2.0 Basics 1 May 1st, 2006 09:26 AM
calling the user defined function on click event CsharpHelp C# 1 June 6th, 2005 07:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.