I have a user control which dynamically loads content using the Item class from the umbraco.presentation.templateControls namespace. I specify a node id and the content from that node will be included in the output of this user control.
Item item = new Item();
item.NodeId = widgetNode.Id.ToString();
item.Field = "widgetContent";
contentPlaceHolder.Controls.Add(item);
If the node I am trying to include has a macro within it then none of the OnClick methods from within the macro will fire on my production web server. have tested it on a number of development machines and all works fine.
I am literally copying all the files from the development machines to the production server so don't think it will be an issue with the umbraco config.
Does anyone have any ideas as to why this might be?
I am using umbraco v 4.9.0 (Assembly version: 1.0.4633.18696)
I had setup caching on all macros on the production system to improve performance. As soon as I removed the caching the button OnClick events fired again.
Button OnClick event not firing when deployed
Hi,
I have a user control which dynamically loads content using the Item class from the umbraco.presentation.templateControls namespace. I specify a node id and the content from that node will be included in the output of this user control.
Item item = new Item();
item.NodeId = widgetNode.Id.ToString();
item.Field = "widgetContent";
contentPlaceHolder.Controls.Add(item);
If the node I am trying to include has a macro within it then none of the OnClick methods from within the macro will fire on my production web server. have tested it on a number of development machines and all works fine.
I am literally copying all the files from the development machines to the production server so don't think it will be an issue with the umbraco config.
Does anyone have any ideas as to why this might be?
I am using umbraco v 4.9.0 (Assembly version: 1.0.4633.18696)
David,
What version of iis on dev and live? Also on live using chrome inspector or firebug do you see any js issues?
Regards
Ismail
Hi Ismail,
Thanks for your reply.
Both dev and production environments use IIS7.
Inspecting both Live and Dev environments using Chrome Inspector show's no JS errors.
Regards,
David
Right I have figured it out.
I had setup caching on all macros on the production system to improve performance. As soon as I removed the caching the button OnClick events fired again.
is working on a reply...