How to utilize Asp.net 4.0 native registration
<p>I have created an ASP.net (4.0) website that uses the auto-generated user registration and login. Is there anyway i can utilize the registration method of the app without using the form provided, such that when I manually pass the required data to some function the person could be registered?</p>

<p>The generated registration.aspx looks like this</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
        {
            RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"];
        }

        protected void RegisterUser_CreatedUser(object sender, EventArgs e)
        {
            FormsAuthentication.SetAuthCookie(RegisterUser.UserName, false /* createPersistentCookie */);

            string continueUrl = RegisterUser.ContinueDestinationPageUrl;
            if (String.IsNullOrEmpty(continueUrl))
            {
                continueUrl = "~/";
            }
            Response.Redirect(continueUrl);
        }
</code></pre>
