DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: User Control on ASP.net

  1. #1
    Mark Guest

    User Control on ASP.net


    Hi,

    I created a user control and I try to drag it onto an ASP.net page. I added
    the declaration at the top of the ASP page, but it keeps giving me the error
    that object reference not instanced. If you need an example I can provide.
    Thanks in advance.

    Mark


  2. #2
    Wesam Guest

    Re: User Control on ASP.net

    You need to declare a variable in your CS file of the type you created;
    unfortunately you have to do this every time you use user-control

    "Mark" <someone@somewhere.com> wrote in message
    news:3ed62897$1@tnews.web.devx.com...
    >
    > Hi,
    >
    > I created a user control and I try to drag it onto an ASP.net page. I

    added
    > the declaration at the top of the ASP page, but it keeps giving me the

    error
    > that object reference not instanced. If you need an example I can

    provide.
    > Thanks in advance.
    >
    > Mark
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center