I am not sure if this is the right place to post this so let me know if I need to move.I am completely new to Umbraco. I am a .net developer and have been asked at my company to evaluate CMS options for a site redesign. We have a current site that uses a SQL Server database and we are giving it a major rehaul.Right now I just want to prove that I can retrieve some data out of our existing db and display it using Umbraco. So I want to know if I can just create a usercontrol in vs that has a gridview on it with and is databound using a stored procedure in the database.Is this possible? I see some videos about Nodes, etc. But do I have to do all that? Can't I just put the usercontrol in and tell it to bind?
By the way, if you do end up going with MVC, the equivalent to a usercontrol would be a partial view.
Umbraco also has the ability to encapsulate either a usercontrol or partial view into what is called a "macro", but that is not actually necessary (i.e., you can use usercontrols and partials views like on any ASP.NET project).
Thank you. Is there documentation on this. I am not using MVC. I have tried the simple Hello World example for a user control using a macro but if there is a way to not use the macro that would be interesting.
Is there documentation on how to get the data bound user control working? I didn't find any.
Displaying data with user control
I am not sure if this is the right place to post this so let me know if I need to move.I am completely new to Umbraco. I am a .net developer and have been asked at my company to evaluate CMS options for a site redesign. We have a current site that uses a SQL Server database and we are giving it a major rehaul.Right now I just want to prove that I can retrieve some data out of our existing db and display it using Umbraco. So I want to know if I can just create a usercontrol in vs that has a gridview on it with and is databound using a stored procedure in the database.Is this possible? I see some videos about Nodes, etc. But do I have to do all that? Can't I just put the usercontrol in and tell it to bind?
Yes, you can. Give it a try.
Note that Umbraco 7 is capable of displaying both MVC views and ASP.NET web forms pages. It may be configured to create MVC views by default, so if that happens refer to "defaultRenderingEngine" on http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/
By the way, if you do end up going with MVC, the equivalent to a usercontrol would be a partial view.
Umbraco also has the ability to encapsulate either a usercontrol or partial view into what is called a "macro", but that is not actually necessary (i.e., you can use usercontrols and partials views like on any ASP.NET project).
Thank you. Is there documentation on this. I am not using MVC. I have tried the simple Hello World example for a user control using a macro but if there is a way to not use the macro that would be interesting.
Is there documentation on how to get the data bound user control working? I didn't find any.
-Jennifer
For example, your template (an ASP.NET WebForms masterpage) would look something like this:
And your user control would look something like this:
Take care to change the namespaces and such. If "CodeBehind" doesn't work, maybe try "CodeFile".
is working on a reply...