I am using the JQuery Data Table in mvc format. Binding the JQuery data table, using condition. But i don't know how to else the condition , show the error message. I need to show the error alert message server side are client side. My sample Code:
public ActionResult Action(string EmpNo)
{
if (condition)
{
// data table passing
}
else
{
//here how to show the error message client side or server side
}
}