How to get drop down values from list template to Event receiver RRS feed

  • Question

  • Hi,

    I want to fetch list item values from list to My event receiver,

    in my list one list item is Category this is a drop down list, from this drop down list i want to get selected value ,i  have to write other code based on category selected value.

    My event is Item Being updating .

    How can i do this.



    Tuesday, December 18, 2012 10:49 AM


  • Hi,

    You can use before/after properties to get past and current value of list column.

    public override void  ItemUpdating(SPItemEventProperties properties)
       if (properties.BeforeProperties["choicecolumn"] != properties.AfterProperties["choicecolumn"])

    Hope it could help

    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"

    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer

    • Proposed as answer by Bjoern H Rapp Tuesday, December 18, 2012 12:43 PM
    • Marked as answer by Entan Ming Thursday, December 27, 2012 2:11 AM
    Tuesday, December 18, 2012 11:35 AM