1

When any user clicks on "Responds to Survey" button/link I want to perform some operation using code behind but can't figure out how can I do it or which event handler can be used.

1
  • Can you please describe what sort of operation do you want to perform? I mean the operations that you want to perform, is it going to affect the new item that is going to be added or some other operations?
    – Diptarag
    Nov 27, 2012 at 13:40

2 Answers 2

1

You cannot use any event handler as its not a button but just only link to Newform.aspx for adding new responses to survey list. you can create a custom list with custom newform.aspx form with page_load method to do the code behind you want to do.

yaron.

0

there is this solution to your problem, you need to use Javascript tho:

http://techtrainingnotes.blogspot.co.uk/2010/12/sharepoint-modifying-respond-to-this.html

surveys are lists and with event reciver you can only do the following as the are lists:

Item adding - Item added

Item updating - Item updated

Item deleting - Item deleted

for more info look here:

Link

or

add a hidden feature that is activated on that page. in codebehind of feature you find the control and create an event handler and do what you want in that click event.

hope it helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.