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, is there a way in Razor to access a node through an id that was passed in a querystring?
thanks for your help,
Anthony
How about this?
var myQuery = Request.QueryString["myQuery"]; int myId; if (int.TryParse(myQuery, out myId)) { var myNode = Umbraco.TypedContent(myId); }
Hi Jeavon, that works perfect, thanks a lot!
Have a nice weekend and see you next month in Antwerp.
greetings,
Perfect, see you in Antwerp!
p.s. you just pushed my karma over 4k, didn't see that coming!!
well, here you go, glad I did something good this day.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to access node from querystring
Hi, is there a way in Razor to access a node through an id that was passed in a querystring?
thanks for your help,
Anthony
How about this?
Hi Jeavon, that works perfect, thanks a lot!
Have a nice weekend and see you next month in Antwerp.
greetings,
Anthony
Perfect, see you in Antwerp!
p.s. you just pushed my karma over 4k, didn't see that coming!!
well, here you go, glad I did something good this day.
is working on a reply...