back soft

مطالب مرتبط با «getting null value in ajax post» در back soft | نویسنده: استخدام کار

Getting null value instead of Id when using custom AuthorizeAttribute

Vote count: 0 I call this action method using an ajax call: [AuthorizeCheckCreator] [HttpPost] [OutputCache(Location = OutputCacheLocation.None, NoStore = true)] public ActionResult Delete(Guid id) { // code.... retu Content("ok"); } I have created a custom AuthorizeAttribute for checking permission of the user (I wanted to make sure whether the user is owner the record or not): public class AuthorizeCheckCreatorAttribute : AuthorizeAttribute { public IRequest RequestService { get; set; } protected override bool AuthorizeCore(HttpContextBase httpContext) { RequestCheckUserViewModel request; if (httpContext.Request.IsAjaxRequest()) { var ajaxId = JsonConvert.DeserializeObject(System.Text.Enco...

ادامه مطلب

برچسب‌های مرتبط

getting null values in hive table | getting null values in sql | getting null value in request getparameter | getting null value in ajax post | getting null value from app config | getting null value of the hidden field at server-side | getting null values in jasper report | getting null values when import from excel | getting null values in servlet | getting null value in java