ASP.NET 2 and custom controls!! How can i create them?

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

  1. #1

    Default ASP.NET 2 and custom controls!! How can i create them?

    i can't find anything on the net to create a simple custom control with
    asp.net 2 and use it in other project..with that i mean having my own
    custom control on toolbox to drag it in designtime

    in asp.net 1 that was simple...i just built my project and there was
    dll which i importet in my tab in toolbox...but in asp.net 2 there are
    is no dll generated when i build my project so i can't import
    anything...

    are there any good tutorials on this, but it has to be ASP.NET 2!!!

    or maybe someone can explain me this with a very simple example...

    thx in advance

    smash2004@gmail.com Guest

  2. Similar Questions and Discussions

    1. communication between an application, custom controls, and user controls
      Hi, and many thanks in advance... I'm a little lost about how to proceed with communication between an application, custom controls, and user...
    2. Why the properties of web user controls which inherted from my custom base UI controls MISSED?
      Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable?
    3. Custom controls that contain other controls
      Okay... maybe this has been done. I hate the Microsoft Tab and Multipage controls. So I'm building my own Tabstrip control. The style and DHTML...
    4. web custom controls
      Hi to all... I have a webform and inside 2 webcontrols like this... Webform.asp |--------------------------------------------------- | ...
    5. Accessing Properties of Custom Controls child Controls
      I am using a Custom Control on a page which renders a button control if required. I need to access the child button control's properties (i.e....
  3. #2

    Default Re: ASP.NET 2 and custom controls!! How can i create them?

    [email]smash2004@gmail.com[/email] wrote:
    > i can't find anything on the net to create a simple custom control
    > with asp.net 2 and use it in other project..with that i mean having
    > my own custom control on toolbox to drag it in designtime
    >
    > in asp.net 1 that was simple...i just built my project and there was
    > dll which i importet in my tab in toolbox...but in asp.net 2 there are
    > is no dll generated when i build my project so i can't import
    > anything...
    >
    > are there any good tutorials on this, but it has to be ASP.NET 2!!!
    >
    > or maybe someone can explain me this with a very simple example...
    >
    > thx in advance
    I guess you're using Visual Web Developer 2005 Express?
    In that case, you can't create custom controls with it. You need
    Visual Studio 2005. You could also compile your files manually
    into a dll with csc or vbc.

    Create a batch file "build.bat", with content like this:

    SET source=myfile1.vb myfile2.vb
    SET target=bin\mydll.dll
    SET
    assemblies=system.web.dll,system.dll,system.xml.dl l,system.design.dll,system.drawing.dll
    SET compiler=%WINDIR%/Microsoft.NET/Framework/v2.0.50215
    SET res1=.\mybitmap.bmp,mynamespace.mybitmap.bmp
    SET res2=.\myresource.resx
    %compiler%\vbc /t:library /out:%target% /r:%assemblies% %source% /res:%res1%
    /res:%res2% /nowarn
    pause

    Replace vbc with csc if you use C#, and replace 2.0.50215 with the correct
    version number.

    --

    Riki


    Riki 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