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

  1. #1

    Default Design-time problem

    Hi there,

    I have 2 properties "P1" (enum) and "P2" (Color).

    When I set P1 I change the value of P2.

    Although the value of P2 is changed in the property window, when I switch to
    html view the value is not written in the control tag while the value of P1
    is correctly written.

    Any Idea?

    Thanks in advance

    Stefano Mostarda
    Rome Italy


    stefano mostarda Guest

  2. Similar Questions and Discussions

    1. Problem persisting asp.net 2.0 property in design-time
      Hi! I have a asp.net 2.0 webcontrol with a property called TestProp (type: string), if i change value in the property-window in vs.net manually...
    2. Problem with design time rendering in VS2005
      I have made a server control to display the average rating for content by showing the number of stars. The problem i have is with the design time...
    3. DataGrid subclass - design time problem
      I created a custom control which is a simple subclass of the DataGrid. I wanted to display a message when the DataSource is empty. Right now I am...
    4. Problem with Design-time behauviour
      Hi Group! I'm currently digging deeper into ASP.NET Server-Controls. My current "project" is a control that should be editable at design time (a...
    5. Design-time problem with ParseControl ...
      Hi, I try to create a custom Webcontrol who load others controls from a string... My code seems to works well at runtime, but in design-time I have...
  3. #2

    Default Re: Design-time problem

    I don't know if this is "best" but...
    Use a custom designer and override onComponentChanged.

    If e.Member.Name == "P1" then set the value of P2.

    Then call the base OnComponentChanged.

    -Andrew




    "stefano mostarda" <stefano.mostarda@grupponet.it> wrote in message
    news:#eJCOvJlDHA.1284@TK2MSFTNGP09.phx.gbl...
    > Hi there,
    >
    > I have 2 properties "P1" (enum) and "P2" (Color).
    >
    > When I set P1 I change the value of P2.
    >
    > Although the value of P2 is changed in the property window, when I switch
    to
    > html view the value is not written in the control tag while the value of
    P1
    > is correctly written.
    >
    > Any Idea?
    >
    > Thanks in advance
    >
    > Stefano Mostarda
    > Rome Italy
    >
    >

    Andrew 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