mvc followed and json data working
search button is working with search string and globel variable is removed now