PDA

View Full Version : Show JsonResult in treepanel using MVC and EF



nil5286
11 Mar 2011, 10:45 AM
I am using a treepanel,i have the properly formated JsonResult which when returned from the Controllers Action, dosent show result in the view.Instead it shows a save dialogue popup window.
public JsonResult Index()
{
string s = {"id":"1","text":"abc","leaf":"true"}
return Json(s);
}