Hi,
I am using the SetExternalLightbox() method to return a partial view for the event information.
However, I would like the controller to return a different view depending on whether an event has been selected or a new one is being created.
if (vm.scheduledEvent == null)
{
vm.scheduledEvent = ev;
// stuff goes here
return View(vm);
}
vm.Category = GetCategory(vm).ToString();
return PartialView("ScheduledEvent", vm);
The partial view is loaded but the buttons are not contained within the form collection. Is there some javascript that i amk missing for this to work?
Or is there a better way of doing this?
Regards