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,
I have created a node on another page. Now moving to another page with session of node.
Can anyone help me finish this. What am i doing wrong?
<umbraco:Macro runat="server" language="cshtml"> @{ var node = Session["node"]; <p>@node</p> node.Publish(userAdmin); library.UpdateDocumentCache(node.Id); } umbraco:Macro> Tkanks :-)
<umbraco:Macro runat="server" language="cshtml"> @{ var node = Session["node"]; <p>@node</p> node.Publish(userAdmin); library.UpdateDocumentCache(node.Id); } umbraco:Macro>
Got it working:
@{ var _alreadyCreatedId = Session["recentnodeId"]; var id = _alreadyCreatedId.ToString().AsInt(); var Node = new Document(id); var userAdmin = new User(0); Node.Publish(userAdmin); library.UpdateDocumentCache(Node.Id); }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Publish node from session with razor.
Hi,
I have created a node on another page. Now moving to another page with session of node.
Can anyone help me finish this. What am i doing wrong?
Got it working:
is working on a reply...