I have the following jquery function
>
This doesn't make sense really. Your C# code runs on the server to generate an HTML file which is passed to the client and translated there. jQuery can only operate on the HTML n the client side.
Is what you're trying to do not achieved by replacing
$('#callGrowel').click(function() {
$.growlUI('Email Received', 'from Joe Bloggs');
});
with
$.growlUI('Email Received', 'from Joe Bloggs');
?