This takes a HyperLinkField and adds three bitmaps for a button image - one each for regular/onmouseout, onmouseover, and onclick. The button files are hardcoded in as const because we always use the same bitmaps and that avoids having to pass them every time.
It also supports adding additional functions to onclick using the format and fields attributes as seems to be the model for data fields. We use this for "return confirm("are you sure you want to delete {0}?");
As always, if you see bugs or possible improvements, please comment.
code: Download ButtonLinkField.cs
Do you find this useful? If so please check out Windward Reports.
Comments