November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Can you provide us your implementation code so that we can have a look ?
Hi Quan
Javascript is standard jQuery call for partial view.
On server site we have standard ASP.MVC controller
public class SubscribeOverlayController : Controller
with Index Action :
public ActionResult Index(int contactPageId, string currentCulture) { var contactPage = BaseDependencies.ContentRepository.Get<ContactPage>(new PageReference(contactPageId), new LanguageSelector(currentCulture)); return PartialView("~/Views/Partial/SubscribeOverlay.cshtml", new SubscribeOverlayViewModel(contactPage, currentCulture)); }
And during rendereing :
@Html.PropertyFor(m => m.SubscribeBlock.FormsArea)
We recive above errors.
FormsArea implementaion :
[Display(Name = "Forms", Description = "Insert forms", GroupName = TabGroupNames.EpiForms)] [AllowedTypes(typeof(FormContainerBlock))] [AllowedBlocks(new[] { typeof(FormContainerBlock) })] [CultureSpecific] public virtual ContentArea FormsArea { get; set; }
I understand that probelm is probably in partial view rendereing. And i iam trying to find some solution.
Partial view cannot be rendered in itself. Do you have the parent view referencing this view?
In stanard templated view yes, but as i have mentioned in my first post this view is recived by axax call.
In this situation I have an button, on clik we make asynchronous (via jQuery $.ajax() method) call for partial view
Hi
I have an problem with loading forms via ajax call. In project we have an form which will be dispalyed on dialog. When rendering partial view during ajax call exception occurs :
Unfortunetly we are using quite old version of forms (4.3.0) and we can't upgrade to higer version :(
Because as I understand problem i with loading some scripts or other dependent content.
So question is have somebody struggled with this problem. Or know how partial view should be created to enable forms on modal popup loaded via xjax?
Right now partial view is quite simple :
Have an nice day :)