Were you ever successfull is calling the EditUrl function from an ASCX file?
The error tells me that you cannot. It is not accessible from an ASCX file.
Write a function in your code to return the proper url - i.e:
Codebehind.vb:
Protected Friend Function GetEditUrl(ByVal KeyName As String, ByVal KeyValue As String, ByVal ControlKey As String) as String
Try
Return EditUrl(KeyName, KeyValue, ControlKey)
Catch exc as Exception
' do something with the exception, if any
End Try
End Function
ASCX file:
<asp:HyperLink
id="editLink"
NavigateUrl='<%# GetEditUrl("PeriodeID", DataBinder.Eval(Container.DataItem,"PeriodeID"), "EditAbrechnungsperioden") %>'
Visible="<%# IsEditable %>"
runat="server">
Let me know if this works out for you.