VS.NET 2005 ASP.NET Component

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default VS.NET 2005 ASP.NET Component

    I have a class deriving from System.ComponentModel.Component.

    In VS 2003 I could drag it on to a web form. However I'm finding in VS 2005
    whilst it functions perfectly at runtime. At design time in VS.NET 2005 you
    can not drag the component on to a web form. When I select customize
    toolbox and select my dll containing the component I can see the component
    listed and checked. After clicking OK the component is not actually
    available in the toolbox. Selecting show all, displays the component
    however it is disabled (greyed out) and cannot be dragged on to a web form.

    This same component works in VS.NET 2005 as it did in 2003 for Winforms
    projects, but not Webforms.

    It seems VS.NET 2005 has decided that my component is not applicable to
    ASP.NET.

    I've attempted adding the System.Web.UI.ToolboxData attribute however it
    made no difference.

    Can anyone explain how VS.NET 2005 decides what is and what isn't an ASP.NET
    component?

    If you want code to replicate it...
    Just create an empty class derived from component.

    Michael


    Michael Lang Guest

  2. Similar Questions and Discussions

    1. ANNOUNCE: DBD::Informix - IBM Informix Database Driver for PerlDBI Version 2005.01 (2005-03-14) released
      IBM Informix Database Driver for Perl DBI Version 2005.01 (2005-03-14) has been uploaded to CPAN. IBM Informix Database Driver for Perl (also...
    2. The FreeBSD Diary: 2005-02-06 - 2005-02-26
      The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org...
    3. The FreeBSD Diary: 2005-01-30 - 2005-02-19
      The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org...
    4. How to make a protected property in the base component public in the derived component?
      I have a base component, from which several components derive. What I want is to just publish some of the protected properties in the base...
  3. #2

    Default Re: VS.NET 2005 ASP.NET Component

    Well that was a surpirising lack of response for an issue that after some
    research turns out has been quite well known for quite some time. It seems
    this was widely discussed during the beta period...

    [url]http://weblogs.asp.net/cazzu/archive/2005/05/28/ComponentsNotBack.aspx[/url]
    [url]http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=102242[/url]

    Basically the functionality my code relied on has been taken away and is now
    unavailable in VS 2005. It seems like you can no longer have components
    that work at design time with both windows forms and asp.net.

    Both the lack of response here and the changes that have been made seem
    extremely odd to me.

    "Michael Lang" <micklang@no_spam_gmail.com> wrote in message
    news:et5XK5kEHHA.996@TK2MSFTNGP02.phx.gbl...
    >I have a class deriving from System.ComponentModel.Component.
    >
    > In VS 2003 I could drag it on to a web form. However I'm finding in VS
    > 2005 whilst it functions perfectly at runtime. At design time in VS.NET
    > 2005 you can not drag the component on to a web form. When I select
    > customize toolbox and select my dll containing the component I can see the
    > component listed and checked. After clicking OK the component is not
    > actually available in the toolbox. Selecting show all, displays the
    > component however it is disabled (greyed out) and cannot be dragged on to
    > a web form.
    >
    > This same component works in VS.NET 2005 as it did in 2003 for Winforms
    > projects, but not Webforms.
    >
    > It seems VS.NET 2005 has decided that my component is not applicable to
    > ASP.NET.
    >
    > I've attempted adding the System.Web.UI.ToolboxData attribute however it
    > made no difference.
    >
    > Can anyone explain how VS.NET 2005 decides what is and what isn't an
    > ASP.NET component?
    >
    > If you want code to replicate it...
    > Just create an empty class derived from component.
    >
    > Michael
    >

    Michael Lang Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139