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

  1. #1

    Default Attributes

    Hi All...

    I have a Auditing system. I want to send Audit messages using attributes. I
    managed to activate the ContextAttribute object, BUT it forced me to inherit
    from ContextBound object (which is too much for me, cause I want to use this
    attribute auditing also in web pages).
    Is there any option to do so ?
    Maybe the solution is somewhere in the Demand staff (.NET rle base
    security).... How is that check enabled ??

    Thanks a lot,...

    Zviki.


    Zviki Goldberg Guest

  2. Similar Questions and Discussions

    1. add attributes 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. Missing Attributes?
      I have been following some tutorials online and have noticed that some of the code in tutorials do not compile in the latest versions of...
    3. Count Attributes
      Hi, To count the number of records in a table we normally use Query_Name.RecordCount.Is there anything where we can count the number of...
    4. Attributes.Add() for DataList
      I know this is the DataGrid forum, but there is no DataList and this is the closest thing. Hope that's cool. Basically... it appears to be...
    5. <span> attributes
      Hi, I noticed that client-side validation (in IE6) is done with <span> tags that have the same attributes as in original aspx code...
  3. #2

    Default Re: Attributes

    Hi,

    You can create your own Attribute and to use it in the code.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default Re: Attributes

    Hi and thanks for your quick answer...

    If I inherit from attribute it means that I must add some line of code
    inside the function and not only in the header of the function. My goal is
    to put the attribute in the head of a function, class and I can do Auditing
    (for ex).

    I would appreciate if you would send me some line of code..

    Thanks a lot...

    Zviki

    "Natty Gur" <natty@dao2com.com> wrote in message
    news:#YNLV2cWDHA.2360@TK2MSFTNGP12.phx.gbl...
    > Hi,
    >
    > You can create your own Attribute and to use it in the code.
    >
    > Natty Gur, CTO
    > Dao2Com Ltd.
    > 34th Elkalay st. Raanana
    > Israel , 43000
    > Phone Numbers:
    > Office: +972-(0)9-7740261
    > Fax: +972-(0)9-7740261
    > Mobile: +972-(0)58-888377
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Zviki Goldberg Guest

  5. #4

    Default Re: Attributes

    The all idea of attribute is that instead of writing code you uswe just
    the Attribute decleration. the code need to be write in the attribute
    costructor or in other class that use reflection in order to find
    attributes and do the work.

    [Audit()]
    Public void MyFunc()
    {
    // function body
    }

    refer to :

    [url]http://www.developerfusion.com/show/2936/1/[/url]

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur 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