User Control Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have UserControl named (AddressBookManagement.ascx)
HTML
<%@ Register TagPrefix="uc1" TagName="AddressBookManagement"
Src="AddressBookManagement.ascx" %>

protected ManagePersonalAddressBook oManagePersonalAddressBook;

on page_load i tried to call a setup function in oManagePersonalAddressBook
but the problem oManagePersonalAddressBook is oManagePersonalAddressBook,,why
the the object is NULL...what should I do?
 
Where have you placed the actual tag in your aspx page? Are you sure you have
the runat="server" attribute set the the <uc1.AddressBookManagement> tag in
you page?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top