Access to the Type of my UserControl

Discussion in 'ASP .Net' started by =?Utf-8?B?QWxleCBNYWdoZW4=?=, Jul 4, 2006.

  1. I wanted to create some static functions inside my user control just as a
    nice way of packaging together some UI functionality with some related non-UI
    functionality. So, inside my UserControl, I created these static functions.
    Here's my problem: From my code-behing C# files for some of my pages, I'm
    trying to reference the class for my UserControl but I can't seem to get to
    it. The UserControl is created an defined inside a namespace which I do have
    a "using" for on the pages, so it's not that. Is it because these controls
    are not pre-compiled? Is that the reason why they can't be referenced this
    way?

    Alex
    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Jul 4, 2006
    #1
    1. Advertising

  2. Hi Alex,

    would you please provide some code for this issue. I would like to see how
    you reference your class for the UserControl.

    Bye

    --
    Matthias Pieroth
    www.codegod.de - The Page for .NET-developers

    "Alex Maghen" <> wrote in message
    news:...
    >I wanted to create some static functions inside my user control just as a
    > nice way of packaging together some UI functionality with some related
    > non-UI
    > functionality. So, inside my UserControl, I created these static
    > functions.
    > Here's my problem: From my code-behing C# files for some of my pages, I'm
    > trying to reference the class for my UserControl but I can't seem to get
    > to
    > it. The UserControl is created an defined inside a namespace which I do
    > have
    > a "using" for on the pages, so it's not that. Is it because these controls
    > are not pre-compiled? Is that the reason why they can't be referenced this
    > way?
    >
    > Alex
    Matthias Pieroth, Jul 4, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. huobazi
    Replies:
    1
    Views:
    666
    David Waz...
    Jul 3, 2003
  2. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    396
    Rajesh Tiwari
    Aug 12, 2003
  3. nail
    Replies:
    0
    Views:
    1,526
  4. Phl
    Replies:
    2
    Views:
    508
    =?Utf-8?B?VGFtcGEgLk5FVCBLb2Rlcg==?=
    Nov 18, 2004
  5. Fabiano
    Replies:
    2
    Views:
    579
    =?Utf-8?B?c3Jpbmk=?=
    Jun 3, 2005
Loading...

Share This Page