Copied to clipboard

Flag this post as spam?

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


  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    May 04, 2010 @ 15:38
    Biagio Paruolo
    0

    Which is the best method for extending umbraco ?

    Hi,

    Which is the best method for extending umbraco ?

    For example: to made new usercontrols, forms, ecc...

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    May 05, 2010 @ 00:46
    Aaron Powell
    0

    • Using Visual Studio
    • Creating .NET user controls for server interaction
    • Creating XSLT if you want UI manipulation

     

  • Chris Dunn 210 posts 401 karma points
    May 05, 2010 @ 02:17
    Chris Dunn
    0

    For more basic forms you may want to look at Contour.  It depends on how complex the form logic and UI need to be.  But it's a good starting point.  http://umbraco.org/products/umbraco-contour.

    -Chris

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    May 05, 2010 @ 22:59
    Biagio Paruolo
    0

    Ok...

    but I can create a normal html form with javascript ajax methods and post to server data via web service without made usercontrol+dll.

  • Marko Ivanovski 14 posts 124 karma points
    May 06, 2010 @ 01:04
    Marko Ivanovski
    0

    Do you specifically have to use Web Services?

    .NET controls are very powerful within Umbraco so here's how I would do it.

    • Create a .NET user control with your form layout
    • Get values from code-behind and use System.Net.Mail.MailMessage to send email
    • Wrap it in a Macro and use it anywhere on the site

    Or if you don't need to send email, you could also post the form to another page (internal/external).

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    May 12, 2010 @ 15:43
    Biagio Paruolo
    0

    I'll use web service as frontend to remote server.

    Then,

    Do I need to use Visual Studio and not out of the box trick , If I want to made some form?...

  • Chris Dunn 210 posts 401 karma points
    May 12, 2010 @ 16:14
    Chris Dunn
    0

    The template system/ usercontrol system is pretty open so referring back to your previous comment, you can use standard 

    <input> tags and jquery (.ajax method http://api.jquery.com/category/ajax/) to post the form to a webservice. 

    As for using a user control without the compiled dll, you can always use it simply as a container for you standard html/jquery code

    or if you want code behind execution you can place the server code in a <script runat="server" language="C#"> directly in the source of the control.

     

    <%@ Control Language="C#" ClassName="MyControl" %>
    <script runat="server">
       //put server code here
    </script>
    <div>
    <label>First Name</label><asp:TextBox id="txtFirstName" Runat="Server"/>
    <label>Last Name</label><asp:TextBox id="txtLastName" Runat="Server"/>
    </div>
    -Chris

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Jul 07, 2010 @ 21:59
    Biagio Paruolo
    0

    This is a good solution for small or simple code. But in that situation there isn't separation between layout and code...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies