On the BeforeEventRender event I override the display to include a hyperlink
"e.InnerHTML = "<A HREF='NewPage.aspx?ID=" & e.Value & "'>MyLink</A><br />" & e.InnerHTML"
The problem is that the EventClick event contains a statement "Response.Redirect("Edit.aspx")"
What should happen is the browser redirects to "Edit.aspx" if I click anywhere in the event (except the hyperlink I added). If f the hyperlink is clicked it should go to NewPage.aspx.
The browser status bar shows the system tries to navigate to the page as specified in the hyperlink, but the response.redirect in the click_event overrides it.
How can I make the click_event fire unlessthe hyperlink is clicked on, orthe event still fires but I can detect the hyperlink was clicked and skip the line which causes the redirect?
This behaviour is not consistent, sometimes the hyperlink works.