Mindfully <> Creative

AJAX

There are 2 entries for the tag AJAX

Using jQuery, CKEditor, AJAX in ASP.NET MVC 2

After banging my head for days on a “A potentially dangerous Request.Form value was detected" issue when post (ajax-ing) a form in ASP.NET MVC 2 on .NET 4.0 framework using jQuery and CKEditor, I found that when you use the following: Code Snippet $.ajax({ url: '/TheArea/Root/Add', type: 'POST', data: $("#form0Add").serialize(), dataType: 'json', //contentType: 'application/json; charset=utf-8', beforeSend: function () { pageNotify("NotifyMsgConten... "MsgDefaultDiv", '<img src="/Content/images/conten...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Note to Self: ValidationGroup is man's best friend...

Ok, I have a signup .aspx form using masterpages and a footer usercontrol with a "Contact Us" form (and a bit more to the layout, but I'll just focus on the to main area to this "Note to Self"). I'll start with the footer since that is the source of my problem. On the footer, I have a "Contact Us" panel form using the modalpopup AJAX toolkit control which in turn is using validations for that particular form with it's own submit button. The masterpage, of course, "ties" the footer form to the .aspx...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati