I'm using the code from the Security turorials for sending an email with a verification link. When the user clicks the link, the below code-behind will make the account active. Can someone show me how to change the below code to add the user to the group "Members" when they click the link? Thanks.
using System;
using System.Web.Security;
public partial class Verification : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Request.QueryString["ID"]))
StatusMessage.Text = "The UserId was not included in the querystring...";
else
{
Guid userId;
try
{
userId = new Guid(Request.QueryString["ID"]);
}
catch
{
StatusMessage.Text = "The UserId passed into the querystring ...
Go to the complete details ...