In this post we are going to programatically build view List item url and Edit List item url-sharepoint 2010.
Below is how the url's supposed to be .
View list item url::
http://<site
url>/Lists/<ListName>/DispForm.aspx?ID=<ItemID>&Source=/Lists/<ListName>
Edit list item url::
http://<site
url>/Lists/<ListName>/EditForm.aspx?ID=<ItemID>&Source=/Lists/<ListName>
Hope this helps...