Custom control creation and debugging?

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

  1. #1

    Default Custom control creation and debugging?

    Hi

    I want to create a custom tab web control, drop it into an asp.net page as shown below, that will create a set of tabs and will generate client-side script and DHTML to toggle the tabs, show/hide panels ("div tags") etc. I would also like to expose a set of properites to set font, tab color, width or even better, pass in CSS Class names

    Do I have to create this and compile it using the command line compiler each time? I'd like to know how do you debug or step through what's going on inside the control while you're developing it? It would seem very tedious if you couldn't do this. Thanks, Dave

    <dt:TabStrip runat=server><dt:Tab Title="Tab A">tab A content goes here</dt:Tab><dt:Tab Title="Tab B">tab b content goes here</dt:Tab></dt:TabStrip>
    Dave Guest

  2. Similar Questions and Discussions

    1. Web user control creation - Resolve an ImageUrl property if control themed
      Hi I'm creating a WebControl which has a themeable ImageUrl property : <Bindable(True), Category("Appearance"),...
    2. Custom Control Debugging - Design Time!
      Greetings & Salutations, I have already scanned the posts for my problem & have found a couple that deal with problems that have the exact same...
    3. ControlDesigner not invoked on custom control when control is rendered within another custom control
      I have a custom control that has a simple designer (derived from System.Web.UI.Design.ControlDesigner) associated with it (using the...
    4. Using Table control in a custom composite control. Control does not render properly in design time.
      All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control...
    5. Debugging Shared Assemblies (ex. Custom Controls)
      Hi Gurus .. I would really appreciate some insights for the problem that bugs me for quite some time. I keep my custom controls in their own...
  3. #2

    Default Re: Custom control creation and debugging?

    Hi Dave,

    You can have a solution containing two projects, your webapp and a class
    library with your custom controls. Debugging your controls at runtime should
    be as easy as setting breakpoints on them and nothing more. Now if you want
    to debug for example a control designer for your control, this would require
    to fire a second instance of VS.NET and attach to it in order to hit the
    control designer code.

    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    [url]http://obies.com/vga/blog.aspx[/url]

    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    "Dave" <anonymous@discussions.microsoft.com> wrote in message
    news:69C8C5B4-903C-49D9-9154-24E16A19988F@microsoft.com...
    > Hi,
    >
    > I want to create a custom tab web control, drop it into an asp.net page as
    shown below, that will create a set of tabs and will generate client-side
    script and DHTML to toggle the tabs, show/hide panels ("div tags") etc. I
    would also like to expose a set of properites to set font, tab color, width
    or even better, pass in CSS Class names.
    >
    > Do I have to create this and compile it using the command line compiler
    each time? I'd like to know how do you debug or step through what's going
    on inside the control while you're developing it? It would seem very
    tedious if you couldn't do this. Thanks, Dave.
    >
    > <dt:TabStrip runat=server><dt:Tab Title="Tab A">tab A content goes
    here</dt:Tab><dt:Tab Title="Tab B">tab b content goes
    here</dt:Tab></dt:TabStrip>


    Victor Garcia Aprea [MVP] 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