i have been trying to follow this blog post to get a sidebar with widgets however im getting errors when i simply past the code into umbraco
error CS0118: 'System.Web.UI.Control' is a 'type' but is used like a 'variable
i would just like to know if the method described in the blog post still works on the latest version of umbraco and if so how do i fix this error. if however there is a better more up to date method could someone point me in the right direction for that.
I don't see why it shouldn't work, so yeah, still a valid method. Any particular reason you decided to put this into the Razor forum? This is not code that you can use in Razor directly.
Sidebar Widgets
i have been trying to follow this blog post to get a sidebar with widgets however im getting errors when i simply past the code into umbraco
error CS0118: 'System.Web.UI.Control' is a 'type' but is used like a 'variable
i would just like to know if the method described in the blog post still works on the latest version of umbraco and if so how do i fix this error. if however there is a better more up to date method could someone point me in the right direction for that.
thanks :)
I don't see why it shouldn't work, so yeah, still a valid method. Any particular reason you decided to put this into the Razor forum? This is not code that you can use in Razor directly.
Hi steweir,
You could take a look at the RenderTemplate control in uComponents too? Might be easier to implement?
Cheers, Lee.
is working on a reply...