Edit Item Window with ModalDialog

Create an image button and code it like this:

<a href="javascript:SP.UI.ModalDialog.ShowPopupDialog('http://serverpath/_layouts/listform.aspx?PageType=6&ListId={6A0B5113-8A81-4104-AFC9-65306996B7D8}&ID=1')"><img src="/path/images/button.gif" border="0" alt="" /></a>

THIS AUTOMATICALLY REFRESHES PARENT PAGE AFTERWARDS!

You can find the path to the item in the list with “View Source Code” in the browser.

PageType=4 == SHOW ITEM PAGE
PageType=6 == EDIT ITEM PAGE

ID=1 == first (ID) item in the list

Is this Pages usefull? Usefull Useless 0 of 0 people say this Pages is usefull.