views:

133

answers:

1
        <%= Ajax.ActionLink("DrillDown", "EventOverzichtAjax", new { GroepID = Model.GroepID.ToString(), 
                                                                    groepType = Model.GroepType.ToString(), 
                                                                    manager = Model.isManager }, 
                                                            new AjaxOptions { UpdateTargetId = Model.GroepID.ToString(),
                                                                              OnBegin = string.Format("beginOverzichtFetch('{0}')", Model.GroepID),
                                                                              OnComplete = string.Format("completeOverzichtFetch('{0}')", Model.GroepID)}) %>

I'm having some issues with the onBegin and onComplate properties. They work perfectly as i want. But they do not when i'm trying to pass a parameter with the function.

For example:

   OnBegin = "beginOverzichtFetch"

Works perfectly. But

  OnBegin = "beginOverzichtFetch(1)"

Does not work at all. When i use chrome inspector to see where the fault occurs: alt text

What happens when my link: Nothing gets updated but i get redirect to the partial view.

Anyone knows how to pass parameters to functions in the onBegin property?

Help would be appreciated! Thanks!

+1  A: 

I have not tried it but this looks like your problem

http://forums.asp.net/t/1414473.aspx

Malcolm Frexner
That did the trick! Thanks
wh0emPah