In MVC there are SurfaceControllers which are similar to the .ascx.cs of a usercontrol and we have RenderMvcControllers which are similar to the .master.cs of a masterpage
If you are using WebForms and usercontrols there is nothing special you need to do, although you can choose to render usercontrols using the MacroEngine if you like.
Hi Jeavon, thanks for your reply. I mean what i write as code to link to a content page . whats the excact code for this (node id? or something else) Axel
Codehind link to Contentpage
Hi,how looks the code that i can build in a link to a content page.
i use umbraco 7 and want in a usercontrol (from codebehind like response.redirect) a link to a content page.
axel
In MVC there are SurfaceControllers which are similar to the .ascx.cs of a usercontrol and we have RenderMvcControllers which are similar to the .master.cs of a masterpage
If you are using WebForms and usercontrols there is nothing special you need to do, although you can choose to render usercontrols using the MacroEngine if you like.
Jeavon
Oh sorry i mean Codebehind !!
I use Webforms.
Hi Jeavon, thanks for your reply. I mean what i write as code to link to a content page . whats the excact code for this (node id? or something else)
Axel
Ok, so codebehind a master page and you want to find out the current content item?
HI jeavon, no . i have a customcontrol that a place via a macro on a master page.
and in this customcontrol i want have a link (like response.redirect) to a content page of umbraco (in my website)
i must now how to link to content pages of umbraco (find out Nodeid and more?)
Hi Axel,
You should have your usercontrol implement
Umbraco.Web.UI.Controls.UmbracoControl
, then you have access to Umbraco.TypedContent(1234) etc.Documentation here
Jeavon
Thanks , that was i am looking for.
Axel
is working on a reply...