Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Access deny to Ajax call
elnove
#1 Posted : Wednesday, September 15, 2010 5:18:07 AM(UTC)
Rank: Member
Groups: Registered

Joined: 7/15/2010(UTC)
Posts: 12
Location: Canada
Hello Friends,

I've build a module with a form, I need to populate a drop down list using ajax call.

I made a class lib project and put all my controllers their. I added a reference and a rout to the module rout table:

Code:

<add name="vFramework" url="vFramework_{Controller}/{action}" routeType="Everest.CmsServices.Web.KoobooRoute, Everest.CmsServices" routeHandlerType="Everest.CmsServices.Web.KoobooMvcRouteHandler, Everest.CmsServices">
<defaults></defaults>
<dataTokens Namespaces="vFramework.CmsServices.Controllers"/>
</add>


Now when I see the ajax call in Firebug, its being redirect to the login page, I need this method to be access by every user including anonymous.

This is the method I'm trying to call :
Code:


public class CommonController:EverestControllerBase
{

public JsonResult GetActivitiesLevel(int LanguageId)
{
return Json(Health.PatientsManager.GetActivityLevels(LanguageId).ToArray(), JsonRequestBehavior.AllowGet);
}
}





can someone help me here.

Thanks,

El
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.