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

  1. #1

    Default Browsable Attribute

    Hi All,

    Could any body plz help me.
    I want to set the browsable attribute value of "property2 " according to
    the value of "property1"

    i could able to change the value of that property but not the attribute

    plz help me

    Regards

    S.Thiruppathi,


    Thiruppathi S Guest

  2. Similar Questions and Discussions

    1. Add attribute to tag
      What files do i look for to modify to add attributes to a tag? I want it to suggest more attributes when i open specific tags. I've been trying to...
    2. Browsable Brochure
      Folks, pardon my inexperience, but I was wondering if someone could direct me to some information about how to create a browsable brochure in Flash....
    3. Retrive data from attribute spaced attribute.
      Hi. I'm retrieving data from an excel sheet. But one of the attributes is name "Phone private". This is a problem when I want to write out the...
    4. Retrieving XML attribute using XML::XPath::Node::Attribute
      Hi I am trying to retrieve an attribute of a particular node from my XML using "XML::XPath::Node::Attribute", but couldn't come across on how to...
    5. Add Attribute to <TD>
      Does anybody know how to add the html 'nowrap' attribute to a particular column in a datagrid? This doesn't work, because I suspect the...
  3. #2

    Default Re: Browsable Attribute

    "Thiruppathi S" <srt@iinterchange.com> wrote in message
    news:OksJSYx7EHA.1260@TK2MSFTNGP12.phx.gbl...
    > Hi All,
    >
    > Could any body plz help me.
    > I want to set the browsable attribute value of "property2 " according to
    > the value of "property1"
    >
    > i could able to change the value of that property but not the attribute
    Attributes are compile-time things, mostly, so you can't easily do this.
    Also, I can't think of an example of a component or control which hides one
    property based on the value of another property.

    You can throw an exception in the property setter for property2 based on the
    value of property1.

    Also, if you create a designer for your component, you can override the
    PostFilterProperties method to replace the normal "property2" property
    setter and replace it either with one that has Browsable(false), or, for
    instance, with one which is read-only.

    John Saunders


    John Saunders 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