mercredi 11 mai 2016

How to invoke a javascript function after a View or PartialView is rendered?

I am using MVC to render a View. The view has a single DIV element and a SCRIPT element. The SCRIPT element has a simple alert('hello world').

When the view is rendered I expected to see the alert popup. Unfortunately this is NOT the case.

What can be done to invoke a script function after a View is rendered?

Aucun commentaire:

Enregistrer un commentaire