سؤال

is there any way we can pass parameter value(selected form field value(drop down box) from newform.aspx)to the event receiver(itemadding) from newform.aspx()in sharepoint 2010, so that they can be received using request.querystring['']; in the event receiver code....

هل كانت مفيدة؟

المحلول

If the dropdown represents one of the column in your list, it should be available as one of the key in properties.AfterProperties.

DISCLAIMER: I have not tried it but since ItemAdding is synchronous event and there is a way to access the HTTPContext in event receivers, you may be able to get to HttpContext.Request.QueryString.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top