Need to update other WebControls when switching from html to design view

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

  1. #1

    Default Need to update other WebControls when switching from html to design view

    Hello all,

    I have a set of WebControls that have a common base class where the
    base class contains a "bool" property that all controls on a single
    Page need to match. Basically, change one control's bool property
    changes them all. If you stay in "Design" view, everything works and
    all the WebControls' property get set correctly and the underlying HTML
    code for each control reflect the change. This is all handled in the
    ControlDesigner.

    The problem occurs when you change to "Html" view and edit one of the
    controls and change the value of the property (or remove it
    altogether). When you switch back to "Design" view, only that one
    control change is reflected and the rest are still the old value.

    Is there any event/method/etc I can override in the ControlDesigner or
    attach something to the IDesignerHost to trigger when the user changes
    from "Html" view to "Design" view?

    Thanks a bunch.

    Rob

    robert.minter@tallan.com Guest

  2. Similar Questions and Discussions

    1. Add controls to my custom control with tags in HTML design view
      I have created a custom control but would like to add other controls to it at design time. I want to be able to put custom control tags inside the...
    2. html file shouldn't open in design view
      Hi dudes. yup that is my question. is it possible to make a html file but that should not open in design view of dreamwever. u should have to go...
    3. Spontaneous view-switching? (ID CS)
      ID has taken to doing something strange and annoying: Often, with several open files, I open or close a palette and ID spontaneously switches the...
    4. switching Datasheet / Form view
      I have a form which is opened from a custom menu bar. The form is set to datasheet as default view, and datasheet is the only view enabled.... ...
    5. Wierd error when going to Design View from HTML view
      When I go from HTML view (in a webform) to Design View I get the following error: Could not open in Design view. Quote values differently inside a...
  3. #2

    Default Re: Need to update other WebControls when switching from html to design view

    On Wed, 20 Jul 2005 09:46:14 -0700, robert.minter wrote:
    > Hello all,
    >
    > I have a set of WebControls that have a common base class where the
    > base class contains a "bool" property that all controls on a single
    > Page need to match. Basically, change one control's bool property
    > changes them all. If you stay in "Design" view, everything works and
    > all the WebControls' property get set correctly and the underlying HTML
    > code for each control reflect the change. This is all handled in the
    > ControlDesigner.
    >
    > The problem occurs when you change to "Html" view and edit one of the
    > controls and change the value of the property (or remove it
    > altogether). When you switch back to "Design" view, only that one
    > control change is reflected and the rest are still the old value.
    >
    > Is there any event/method/etc I can override in the ControlDesigner or
    > attach something to the IDesignerHost to trigger when the user changes
    > from "Html" view to "Design" view?
    >
    > Thanks a bunch.
    >
    > Rob
    Are you building a control library. I have not done much designer work
    with 2.0
    intrader Guest

  4. #3

    Default Re: Need to update other WebControls when switching from html to design view

    intrader wrote:
    > On Wed, 20 Jul 2005 09:46:14 -0700, robert.minter wrote:
    >
    > > Hello all,
    > >
    > > I have a set of WebControls that have a common base class where the
    > > base class contains a "bool" property that all controls on a single
    > > Page need to match. Basically, change one control's bool property
    > > changes them all. If you stay in "Design" view, everything works and
    > > all the WebControls' property get set correctly and the underlying HTML
    > > code for each control reflect the change. This is all handled in the
    > > ControlDesigner.
    > >
    > > The problem occurs when you change to "Html" view and edit one of the
    > > controls and change the value of the property (or remove it
    > > altogether). When you switch back to "Design" view, only that one
    > > control change is reflected and the rest are still the old value.
    > >
    > > Is there any event/method/etc I can override in the ControlDesigner or
    > > attach something to the IDesignerHost to trigger when the user changes
    > > from "Html" view to "Design" view?
    > >
    > > Thanks a bunch.
    > >
    > > Rob
    > Are you building a control library. I have not done much designer work
    > with 2.0
    Yes, of sorts. It's a navigation control with associated content
    container.

    I'm still using v1.1.

    robert.minter@tallan.com 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