I am using MVC and I am checking the condition on the backend(controller). I want to show message in a Jquery modal box which will be fired from the back end(controller).
Can anyone state me how to do this.
I have tried to use the following code but that is giving me some message: Invalid Argument.
string scriptstring = "$(function(){initializedialog();showDialog(\"" + "Please answer to all the Question." + "\");});";
ScriptManager.RegisterStartupScript(this, typeof(Page), "test", scriptstring , true);
Can you tell me how to use the above statement in MVC
Thanks