High-level question about ASP.NET web controls..

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

  1. #1

    Default High-level question about ASP.NET web controls..

    I'm a bit of a noob when it comes to web controls... What I want to do, is
    create web control that appears in the toolbox, that one could drag onto a
    web page - and you'd see the actual control (e.g. what it will look like on
    the resultant web page - much like how the datagrid looks).

    If I use a "user control", it puts that grey box describing the control, and
    you need to imagine what it will look like (yipee!)!

    If I create a seperate "web control" project, and it creates the default
    "WebCustomControl1.cs" - that adds to the toolbox, but just displays text.
    And after scouring the net, looks like you'd need to manually create your
    controls in text, which doesn't sound right.

    Shouldn't I be able to WYSIWYG a control (and add my code behind it) and
    make that available via the toolbox? The main thing I want is to see it in
    design-time, and be able to manipulate the public properties...

    What am I missing? Thanks!



    RCS Guest

  2. Similar Questions and Discussions

    1. Application High Level Design
      I am building a registration form in Flex that could have up to 120 fields for the user to fill out depending upon what they select. They may not...
    2. High run queue, high idle cpu percentage
      Hey - I have a werid situation: vmstat shows high r (always r>0, sometimes r>10), but id > 90%. The rest of the values are nominal. Any...
    3. Control Level 0 MC from Level 1 Button?
      "haydenad" <haydenad@qis.net> wrote in message news:c0bfnh$ir1$1@forums.macromedia.com... level apply _level0.gotoAndPlay("Close"); hth
    4. Newby High Level Design/Architecture Question
      Hi there, Firstly, sorry for the cross post. I didn't get a reply on the dotnet.framework.webservices group so I though this group may be able to...
    5. a high res question
      ok, I am not used to the higher resolution of my new camera. With my other Kodak point and shoot it gave me 300 res for a 4 X 6 picture which seemed...
  3. #2

    Default Re: High-level question about ASP.NET web controls..


    "RCS" <rseder@gmail.com> wrote in message
    news:NHg0e.9958$ZB6.8296@newssvr19.news.prodigy.co m...
    > I'm a bit of a noob when it comes to web controls... What I want to do, is
    > create web control that appears in the toolbox, that one could drag onto a
    > web page - and you'd see the actual control (e.g. what it will look like
    > on
    > the resultant web page - much like how the datagrid looks).
    >
    > If I use a "user control", it puts that grey box describing the control,
    > and
    > you need to imagine what it will look like (yipee!)!
    >
    > If I create a seperate "web control" project, and it creates the default
    > "WebCustomControl1.cs" - that adds to the toolbox, but just displays text.
    > And after scouring the net, looks like you'd need to manually create your
    > controls in text, which doesn't sound right.
    >
    > Shouldn't I be able to WYSIWYG a control (and add my code behind it) and
    > make that available via the toolbox? The main thing I want is to see it in
    > design-time, and be able to manipulate the public properties...
    >
    > What am I missing? Thanks!
    >
    >
    >
    Sounds like 1.) You need to implement the "text" as html in the web control
    and you also may need to look into Designers for your web control. Try the
    samples that come with the .Net SDK and the MSDN Library for more
    information about how to do both :)

    Mythran


    Mythran Guest

  4. #3

    Default Re: High-level question about ASP.NET web controls..

    User Controls allow you to use the designer to build them and they're typically
    only used within a single project. There is no toolbox support for them.

    Custom and Composite controls are packaged as DLLs and as you've seen have
    no designer support, as they create all of their child controls in code.
    They are built as a DLLs to deter modifications to the code/layout and this
    is what a third party control dev would build. These do have toolbox support/integration
    for that purpose -- these are meant for reuase across different applications.


    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > I'm a bit of a noob when it comes to web controls... What I want to
    > do, is create web control that appears in the toolbox, that one could
    > drag onto a web page - and you'd see the actual control (e.g. what it
    > will look like on the resultant web page - much like how the datagrid
    > looks).
    >
    > If I use a "user control", it puts that grey box describing the
    > control, and you need to imagine what it will look like (yipee!)!
    >
    > If I create a seperate "web control" project, and it creates the
    > default "WebCustomControl1.cs" - that adds to the toolbox, but just
    > displays text. And after scouring the net, looks like you'd need to
    > manually create your controls in text, which doesn't sound right.
    >
    > Shouldn't I be able to WYSIWYG a control (and add my code behind it)
    > and make that available via the toolbox? The main thing I want is to
    > see it in design-time, and be able to manipulate the public
    > properties...
    >
    > What am I missing? Thanks!
    >


    Brock Allen Guest

  5. #4

    Default Re: High-level question about ASP.NET web controls..

    Thanks for the response...

    But what I'm not "getting" - is that the whole point of writing a control,
    is it likely needs to do something a bit complicated or complex. So if there
    were EVER a time, there should be a visual editor for laying something out,
    it would be THAT!! :-)

    I've been through the samples and MSDN and haven't found any reference to a
    designer for a web control - do you have a link perhaps?? Thanks again!


    "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message
    news:ucnRuY8LFHA.3540@tk2msftngp13.phx.gbl...
    >
    > "RCS" <rseder@gmail.com> wrote in message
    > news:NHg0e.9958$ZB6.8296@newssvr19.news.prodigy.co m...
    >> I'm a bit of a noob when it comes to web controls... What I want to do,
    >> is
    >> create web control that appears in the toolbox, that one could drag onto
    >> a
    >> web page - and you'd see the actual control (e.g. what it will look like
    >> on
    >> the resultant web page - much like how the datagrid looks).
    >>
    >> If I use a "user control", it puts that grey box describing the control,
    >> and
    >> you need to imagine what it will look like (yipee!)!
    >>
    >> If I create a seperate "web control" project, and it creates the default
    >> "WebCustomControl1.cs" - that adds to the toolbox, but just displays
    >> text.
    >> And after scouring the net, looks like you'd need to manually create your
    >> controls in text, which doesn't sound right.
    >>
    >> Shouldn't I be able to WYSIWYG a control (and add my code behind it) and
    >> make that available via the toolbox? The main thing I want is to see it
    >> in
    >> design-time, and be able to manipulate the public properties...
    >>
    >> What am I missing? Thanks!
    >>
    >>
    >>
    >
    > Sounds like 1.) You need to implement the "text" as html in the web
    > control and you also may need to look into Designers for your web control.
    > Try the samples that come with the .Net SDK and the MSDN Library for more
    > information about how to do both :)
    >
    > Mythran
    >
    >

    RCS Guest

  6. #5

    Default Re: High-level question about ASP.NET web controls..


    "RCS" <rseder@gmail.com> wrote in message
    news:nah0e.9968$ZB6.7747@newssvr19.news.prodigy.co m...
    > Thanks for the response...
    >
    > But what I'm not "getting" - is that the whole point of writing a control,
    > is it likely needs to do something a bit complicated or complex. So if
    > there were EVER a time, there should be a visual editor for laying
    > something out, it would be THAT!! :-)
    >
    > I've been through the samples and MSDN and haven't found any reference to
    > a designer for a web control - do you have a link perhaps?? Thanks again!
    >
    >
    RCS,

    Ok, then...in the MSDN Library, look up ControlDesigner class
    (System.Web.UI.Design) [under Index in MSDN]. Also, for some examples,
    check out the following MSDN link (in the MSDN library):

    ms-help://MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconhtmldesignersample.htm

    and found on goolge:

    [url]http://aspalliance.com/articleViewer.aspx?aId=436&pId=-1[/url]

    The above samples are extremely simple controls/designers. Control
    designers used with Web Controls can create powerful web control design-time
    support for your web controls.

    For more design-time support, check out TypeConverter and UI Type Editors.

    Hope this helps ;)

    Mythran


    Mythran Guest

  7. #6

    Default Re: High-level question about ASP.NET web controls..

    This has been a pretty frustrating day - I can't believe this, is this
    difficult. But thanks again for your help!!

    "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message
    news:O$IUSa9LFHA.1476@TK2MSFTNGP09.phx.gbl...
    >
    > "RCS" <rseder@gmail.com> wrote in message
    > news:nah0e.9968$ZB6.7747@newssvr19.news.prodigy.co m...
    >> Thanks for the response...
    >>
    >> But what I'm not "getting" - is that the whole point of writing a
    >> control, is it likely needs to do something a bit complicated or complex.
    >> So if there were EVER a time, there should be a visual editor for laying
    >> something out, it would be THAT!! :-)
    >>
    >> I've been through the samples and MSDN and haven't found any reference to
    >> a designer for a web control - do you have a link perhaps?? Thanks again!
    >>
    >>
    >
    > RCS,
    >
    > Ok, then...in the MSDN Library, look up ControlDesigner class
    > (System.Web.UI.Design) [under Index in MSDN]. Also, for some examples,
    > check out the following MSDN link (in the MSDN library):
    >
    > ms-help://MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconhtmldesignersample.htm
    >
    > and found on goolge:
    >
    > [url]http://aspalliance.com/articleViewer.aspx?aId=436&pId=-1[/url]
    >
    > The above samples are extremely simple controls/designers. Control
    > designers used with Web Controls can create powerful web control
    > design-time support for your web controls.
    >
    > For more design-time support, check out TypeConverter and UI Type Editors.
    >
    > Hope this helps ;)
    >
    > Mythran
    >
    >

    RCS Guest

  8. #7

    Default Re: High-level question about ASP.NET web controls..

    I don't blame you for being somewhat confused. Control creation is a deep
    topic.
    I have a lot of information about the creation of web controls on my web
    site. I think you could learn some things there.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    [url]http://SteveOrr.net[/url]


    "RCS" <rseder@gmail.com> wrote in message
    news:NHg0e.9958$ZB6.8296@newssvr19.news.prodigy.co m...
    > I'm a bit of a noob when it comes to web controls... What I want to do, is
    > create web control that appears in the toolbox, that one could drag onto a
    > web page - and you'd see the actual control (e.g. what it will look like
    > on
    > the resultant web page - much like how the datagrid looks).
    >
    > If I use a "user control", it puts that grey box describing the control,
    > and
    > you need to imagine what it will look like (yipee!)!
    >
    > If I create a seperate "web control" project, and it creates the default
    > "WebCustomControl1.cs" - that adds to the toolbox, but just displays text.
    > And after scouring the net, looks like you'd need to manually create your
    > controls in text, which doesn't sound right.
    >
    > Shouldn't I be able to WYSIWYG a control (and add my code behind it) and
    > make that available via the toolbox? The main thing I want is to see it in
    > design-time, and be able to manipulate the public properties...
    >
    > What am I missing? Thanks!
    >
    >
    >

    Steve C. Orr [MVP, MCSD] Guest

  9. #8

    Default Re: High-level question about ASP.NET web controls..

    Thanks - I'll check it out!

    "Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
    news:eZ%23JFm%23LFHA.1300@TK2MSFTNGP10.phx.gbl...
    >I don't blame you for being somewhat confused. Control creation is a deep
    >topic.
    > I have a lot of information about the creation of web controls on my web
    > site. I think you could learn some things there.
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > [url]http://SteveOrr.net[/url]
    >
    >
    > "RCS" <rseder@gmail.com> wrote in message
    > news:NHg0e.9958$ZB6.8296@newssvr19.news.prodigy.co m...
    >> I'm a bit of a noob when it comes to web controls... What I want to do,
    >> is
    >> create web control that appears in the toolbox, that one could drag onto
    >> a
    >> web page - and you'd see the actual control (e.g. what it will look like
    >> on
    >> the resultant web page - much like how the datagrid looks).
    >>
    >> If I use a "user control", it puts that grey box describing the control,
    >> and
    >> you need to imagine what it will look like (yipee!)!
    >>
    >> If I create a seperate "web control" project, and it creates the default
    >> "WebCustomControl1.cs" - that adds to the toolbox, but just displays
    >> text.
    >> And after scouring the net, looks like you'd need to manually create your
    >> controls in text, which doesn't sound right.
    >>
    >> Shouldn't I be able to WYSIWYG a control (and add my code behind it) and
    >> make that available via the toolbox? The main thing I want is to see it
    >> in
    >> design-time, and be able to manipulate the public properties...
    >>
    >> What am I missing? Thanks!
    >>
    >>
    >>
    >
    >

    RCS 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