Okay, i think i've tried 3-4 methods here from stackoverflow, but none seems to work.
I've got:
OnClientClick='<%# Eval(albumName, doConfirm(delete, {0});).ToString() %>'
but in html it renders as:
onclick=doConfirm("delete", "Test");
Also tried making a method to call:
public string CreateConfirmation(String action, String item) {
return String.Format(@return confirm('Sikker på du vil {0}: {1}');, action, item);
}
With this:
OnClientClick='<%# CreateConfirmation(delete, (string)Eval(albumName)) %>'
But gives me exact same problem....
So im pretty lost?