Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1284 posts 2741 karma points
    Oct 09, 2009 @ 17:56
    Amir Khan
    0

    Basic Signup Form

    Hi, I have very little experience with .NET and am a bit lost as to how i would go about creating a basic signup form. I just want the form to collect data into a database table (name, email, etc.). Also, how can I get the form to work with ajax to avoid a page refresh?

    Any help would be greatly appreciated!

    -Amir

  • Dan 1288 posts 3921 karma points c-trib
    Oct 09, 2009 @ 18:00
    Dan
    0

    A good start would be Runway or CWS - they both have simple forms you can dissect to get your head around it.  Personally, I'd avoid AJAX for the core functionality of this, and would only use it to enhance a server-side solution ('progressive enhancement').

    Hope this helps...

  • Amir Khan 1284 posts 2741 karma points
    Oct 09, 2009 @ 18:12
    Amir Khan
    0

    Dan, thank you. I installed the Runway contact form package, it seems like it's functionality is based on sending emails rather than data collection? Am I understanding correctly?

  • Lee 1130 posts 3088 karma points
    Oct 09, 2009 @ 20:27
    Lee
    0

    Hey Amir

    You need to get a subscription o Umbraco.tv

    http://www.umbraco.tv

    and watch this video

    http://www.umbraco.tv/documentation/videos/for-developers/working-with-data/creating-data-programmatically

    It covers everything you are trying to do...

  • Jannik Nilsson 38 posts 81 karma points
    Oct 12, 2009 @ 11:27
    Jannik Nilsson
    0

    You can propably glean something from this:

    MemberGroup mbg = MemberGroup.GetByName(ctrlDropDownListPosition.SelectedItem.Text);
    MemberType mbt = MemberType.GetByAlias("Extranet member type");
    Member m = Member.MakeNew(ctrlTextBoxEmail.Text, mbt, User.getAllByLoginName("admin")[0]);
    m.Text = m.LoginName = m.Email = ctrlTextBoxEmail.Text;
    m.Password = ctrlTextBoxPassword.Text;
    m.getProperty("name").Value = ctrlTextBoxName.Text;
    m.AddGroup(mbg.Id);
    m.Save();
  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Mar 18, 2011 @ 16:30
    Biagio Paruolo
    0

    You must use a your usercontrol

Please Sign in or register to post replies

Write your reply to:

Draft