Error when trying to link to event registration

I am writing a custom asp.net application in C# for a client in Brisbane (REIQ). This application is integrated into iMIS and will be accessed from the Certification module.
One of the pages has a datagrid which has a hyperlink column. When you click on the link on this column, it should take you to that event registration.

The URL I am using is:
e.g.
imisnet:event/4010/b51192e0-332d-40c0-8c25-e777ffe750c0-key_event

When I click on this link, it takes me to the register for an event page, seems to load that registration and then crashes with the following error:
Runtime error!
Program: c:\Program Files\iMIS10\Omnis7\Omnis7.exe
R6025
- pure virtual function call

Any ideas on why this could be happening? I have another button on this page which links to an order (imisnet:order/4050/683a198b-1fc7-46dd-b55b-eb02de2e1d74-key_order) and that works fine. Why would the other links be producing this error?

Any help on this would be very much appreciated.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Further details

After some further testing, I found that the exact same URL (imisnet:event/4010/b51192e0-332d-40c0-8c25-e777ffe750c0-key_event) works when it is run through the button (it's actually an anchor tag with CSS making it look like a button), but produces that error when it is run through the datagrid hyperlink column.

Any ideas?

Solved. But very strange.

It seems that the reason this was happening, was because the hyperlink column in the datagrid was using an image tag. When I removed the image tag and just put in text for the hyperlink, it worked fine. Very Strange.
I ended up using a CSS backround image, to get the same look as before but this time without the <img> tag.

So when you looked at the source of the page, which was not working, I had:
<a id="_ctl1_dgUnits__ctl2_regHL" href="imisnet:event/4010/b51192e0-332d-40c0-8c25-e777ffe750c0-key_event"><img src="../../AsiCommon/images/18/18_users.gif" id="_ctl1_dgUnits__ctl2_regImg" border="0" alt="View Registration" /></a>

Now I changed it so the source produced looks like this and it works fine:
<a id="_ctl1_dgUnits__ctl2_regHL" class="RegImage" title="View Registration" href="imisnet:event/4010/b51192e0-332d-40c0-8c25-e777ffe750c0-key_event">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

So there you go.