HrefValue returns empty in Page_DataRendering (v2023)

  1. Custom Field or not is not important, you get the file name from other table and it is handled as a normal field.
  2. You do need to set the HREF field unless the field’s View Tag is set as IMAGE.
  3. There is no need to set Original field value because the field is a not a lookup field (right?).
  4. If the field can be displayed in the View page as image, then it should also work in Page_DataRendering because they both use the same HrefValue.

You should inspect HTML element in the page, compare the HTML of the two images (one from your server event and the other from the field) and find out why the image at the top is not displayed.