Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sd 12 posts 33 karma points
    Sep 14, 2012 @ 22:47
    Sd
    0

    How to integrate existing code in c#, .net 3.5 with Umbraco?

    Hello, 

    I need to deliver a car insurance website to my client for which they want UI to be done with technologies like html5, css3 and jqueryui whereever possible with Umbraco as the CMS. For the backend tasks like getting the values from the form, saving it to database, generating quotes as per the information entered by user, payment process, etc, they already have existing code written in c#, .net framework 3.5. 

    I am new to Umbraco and would like to know that what are the possibilities for me as a developer to integrate their existing code as discussed above with my new template/skin of the website? The main reason they want to know is to how to integrate their existing code with Umbraco.

    Thanks

    Sid

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 15, 2012 @ 10:33
    Jan Skovgaard
    0

    Hi Sd and welcome to our :)

    It should be possible for you to simply create a user control based macro, which you can place on your template and simply have it work. If you store information in another database you probably need to add the connection string to the web.config in order to make it work.

    So if I understand your post corretly you should be able to create your form in a user control and have the logic for the user control in the codebehind. Compile your project and copy over the usercontrol to the "usercontrols" folder" and copy the assembly to the bin folder.

    Inside of Umbraco go to the developer section, right click "macroes" give your macro a name and then map the macro to your usercontrol.

    In your template you should now be able to place your usercontrol based macro.

    Hope this makes sense.

    /Jan

  • Sd 12 posts 33 karma points
    Sep 16, 2012 @ 17:32
    Sd
    0

    Hi Jan, 

    I am able to understand your instructions above. When you said about a new database connection, I am confused about, is that a common way to create a new database if you want to extend the database? Can I not create my new tables or views or subprocedures inside the umbraco's existing database itself? I understand that it will be very clean if we have two database.

    But say, if I have a complete new database, is it possible for me to have a entity framework model as ORM and my web.config has reference to the model which results in my application talking to new database with the help of an ORM. 

    Also, when watching document types video tutorial, tutor says that document type is a way to define the data structure for a page. So, can this be used for the above point which can eliminate the need of me creating a new db with model? I have one contact form as a user control which I want to integrate with Umbraco. So, should I use a new database or is there any way to save the user input data in the Umbraco's existing database?

    I look forward to hear from you soon.

    Thanks 

    Sd

     

Please Sign in or register to post replies

Write your reply to:

Draft