Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi To All,
Here I want to redirect on the external url like http:// when ContentService.Published event is fired from umbraco backoffice
Below I am going to share my code
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { ContentService.Published += ContentServicePublished; } private void ContentServicePublished(IPublishingStrategy sender, PublishEventArgs<IContent> args) { try { var context = UmbracoContext.Current; context.HttpContext.Response.Redirect("http://"); } catch (Exception ex) { var result = JsonConvert.SerializeObject(ex); } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Redirect on external URL like http://.com when contentservice Published event is fired manually.
Hi To All,
Here I want to redirect on the external url like http:// when ContentService.Published event is fired from umbraco backoffice
Below I am going to share my code
is working on a reply...