is there a way where we can get the link(editform.aspx) of item just added to the list-- in the itemadded method of the event receiver (Share Point object model)


Following should give you the Url to the edit form:

string editUrl = String.Format("{0}/{1}?ID={2}", properties.WebUrl, properties.List.Forms[PAGETYPE.PAGE_EDITFORM].Url,properties.ListItemId);

You should be able to get the SPListItem.URL property of the item in the itemadded event receiver. The URL property gets the site-relative URL of the item.

Hope I have understood your question correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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