I have an view with simple script as such:
<script type="txt/javascript">
function DoSomething(param)
{
alert(param);
}
</script>
Is there anyway I can call that function with a value in a controller action method return result?
Edit:
I really am looking to create/register JavaScript classes with Entity Framework values. If it cannot be done how can I create/register Javascript classes with EntityFramework values?
OK, here's the thing: I already have a JS function something like this:
RegisterClasses(param1, param2)
{
......
}
I have seen it done elsewhere thru Fiddler but do not know how they do it.
How can I pass values to that JS function to create classes from values in EF?