I have a http controller which is called from a getJSON method. Its working pretty good. But now I want to do the same operation performed in handler in a controller method. I am sending a value through getJSON to handler and it perform with that value.

Did you verify if the url parameter is correct? In this example I have used the @Url.Action("SomeAction") server side helper to generate it, but in your case, are you using Razor and is this script inside your view or in a separate file? Make sure that the url you are passing to the $.getJSON method is correct. Also look in FireBug to see exactly to which address is the AJAX request being sent the reason for it failing.
–
Darin DimitrovMar 12 '13 at 9:32

I have created a controller with name 'ProfileDetails' and action 'GetProfile'. I want to call this action from separate aspx page through getJSON.
–
SandyMar 12 '13 at 10:00

Alright, then make sure you have properly set the url to this controller action (the first parameter you are passing to the $.getJSON method). Here's how you could do that in your ASPX page: var url = '<%= new UrlHelper(Request.RequestContext).Action("GetProfile", "ProfileDetails") %>';
–
Darin DimitrovMar 12 '13 at 10:01