Michael
-
12/22/2008 6:50:29 AM
RE:Use item-properties in code-behind
Hello Helena,
Because we buyed and use Kentico CMS in our company now, i want to practise web development with Kentico. To do this, i decided to relaunch my private web page using the free version of Kentico and migrate the functions to the Kentico-CMS.
In my "old" ASP.NET-Projekt i defined a Video-Class with some properties. I also had a DAL-Class which had a method GetVideo(int id) to get a specific Video-Object (instance from the video-class). This DAL-Class was used to retreive a video-object in the code behind of a web-page. The properties of the retrieved video-object where used to set some properties of a video-viewer-control. (Call Select-method of DAL-Object and set properties in the code-behind of 1 web-page).
Now i thought that it is a good idea to use document-types instead of "normal" classes. So in future i do not need do write object-classes and DAL-Classes for selecting, updating or delete objects.
So, it is no problem to list all the video-documents, wtih all field-values, on a web-page. (Using datalist or repeater) I want that a user can select a object or click a Button for each object. When this is done, the field-values should be used to set the properties of the video-viewer. (for example. volument, video-url, etc.)
Thanks for your help! Michael
|