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
How do I Force changes made on BeforeSave to show in admin UI
Currently I'm working with Member but the problem is the same for Document
Currently I'm thinking the solution is some hack such as reloading the whole page, perhaps having a custom DataType wich does a redirect on postback.
Any other ideas?
Hi Murray,
if you want to force changes to backend of umbraco ... then you can use ...
//save and publish --- d is document d.Publish(user); //tell the runtime to update the node cache umbraco.library.UpdateDocumentCache(d.Id);
or you can redirect to current page like ....
//Redirect to current page to refresh content
Response.Redirect(Request.RawUrl);
cheers,
jigs
Awesome, that's simple enough, here's my actual code in my ApplicationBase
Member.AfterSave += Refresh;
private void Refresh(Member sender, SaveEventArgs e) { if (HttpContext.Current != null) { if(HttpContext.Current.Request.RawUrl.Contains("editMember.aspx")) HttpContext.Current.Response.Redirect(HttpContext.Current.Request.RawUrl); } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do I Force changes made on BeforeSave to show in admin UI
How do I Force changes made on BeforeSave to show in admin UI
Currently I'm working with Member but the problem is the same for Document
Currently I'm thinking the solution is some hack such as reloading the whole page, perhaps having a custom DataType wich does a redirect on postback.
Any other ideas?
Hi Murray,
if you want to force changes to backend of umbraco ... then you can use ...
//save and publish --- d is document
d.Publish(user);
//tell the runtime to update the node cache
umbraco.library.UpdateDocumentCache(d.Id);
or you can redirect to current page like ....
//Redirect to current page to refresh content
Response.Redirect(Request.RawUrl);
cheers,
jigs
Awesome, that's simple enough, here's my actual code in my ApplicationBase
is working on a reply...