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)

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

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);
link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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