1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Need advices to start developing

Need advices to start developing

3 posts, 0 answered
  1. Giovanni Pulvirenti
    Giovanni Pulvirenti avatar
    11 posts
    Registered:
    24 Nov 2009
    14 May 2010
    Link to this post
    Hi,
    I'm looking for a correct starting point to port and develop our existing DotNet project inside Sitefinity.
    This is our scenario:
    1. the web GUI is developed in ASP.Net/VB.Net, mostly using web user controls (.ascx) and Telerik ASP.Net controls (we cannot renounce to it, for example)
    2. the data layer and business logic is entirely developed in VB.Net classes and compiled in .dll files

    I have evaluated these three developing solutions:
    1. pluggable module
    2. custom controls
    3. web user controls (ascx)

    Now I am really lost about what way to go on. Every point above has many disadvantages in relation of our scenario.
    Briefly I'll try to better explain, using some questions and hoping that your answers can point me to the right decision.

    Point 1 (pluggable module):
    a. is there a way to use the Visual Studio Designer to build such a complex GUI?
    b. is there a way to reuse existent GUI VB code that actually is behind the aspx pages and ascx controls?

    Point 2 (custom controls):
    At the first look, this seemed to me the way that best fits our needs; but, what about the possibility to use the Visual Studio Designer for the GUI?

    Point 3 (web user controls):
    Well, should be a good starting pointing; but, after all, all my attempts have always clashed with the following exception: "you can add to the page one instance of ScriptManager". Unless I use simple ASP.Net controls (eg textbox): I'm quite sure I'm missing something that enables me to use Telerik ASP.Net Controls... really can't figure what :-(

    I'm sure you can really help me.

    Thanks in advance
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 May 2010
    Link to this post
    Hello Giovanni Pulvirenti,


    Point 1 (pluggable module):
    a. is there a way to use the Visual Studio Designer to build such a complex GUI?


    RadControls have Design support, but most of the Sitefinity controls does not. Having that said, you will be able to move some of the controls in the layout, but you will not be able to set properties and subscribe for events.
    When you work with embedded templates in a class library there is no way to use intellisense, so the better option is to create just the templates in the website project where you have intellisense and then paste these templates to the class library. The same applies for Point2

    b. is there a way to reuse existent GUI VB code that actually is behind the aspx pages and ascx controls?

    Our code is written in C#. You could reuse the templates ( actually all templates are exposed as an archive - External Templates in your account >> Download section.)
    If you inherits from some base classes you could reuse the logic and backend/fontend templates of the base classes.

    Point3

    Only one instance of the ScriptManager control can be added to the page. The page can include the control directly, or indirectly inside a nested component such as a user control, content page for a master page, or nested master page. If a page already contains a ScriptManager control, but a nested or parent component needs additional features of the ScriptManager control, the component can include a ScriptManagerProxy control. For example, the ScriptManagerProxy control enables you to add scripts and services that are specific to nested components.

    So, the ScriptManager should be declare in your master page ( template) inside the form tag.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Giovanni Pulvirenti
    Giovanni Pulvirenti avatar
    11 posts
    Registered:
    24 Nov 2009
    14 May 2010
    Link to this post
    Thank you very much Ivan,
    I will examine your advices and I will report here my choice.
    By now I can say that user controls (ascx) runs quite good for our needs. I solved the exception I mentioned before.
    I will deeply examine that way in the next few days.
    If you agree, I'll add other posts to this thread because I think I'll have other questions about this startup process. So, please, keep it open.

    Thanks again :-)
Register for webinar
3 posts, 0 answered