1) Bootstrap - (Designing)
2) Create Stored procedure for Insertion, Deletion and Updation.
3) create a web application which have login and registration page with proper validation and After registration show a tree view which will display the view of their downline as shown below in the following image
Home
<form id="form1" runat="server">
<table>
<tr>
<td>UserName:
</td>
<td>
<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ErrorMessage=" User Name Required." ForeColor="Red" ControlToValidate="txtUsername" runat="server" />
</td>
</tr>
<tr>
<td>Password:
</td>
<td>
<asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ErrorMessage=" Password Required." ForeColor="Red" ControlToValidate="txtPassword" runat="server" />
</td>
</tr>
<tr>
<td>ConfoirmPassword:
</td>
<td>
<asp:TextBox ID="txtConfirmPassword" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ForeColor="Red" ControlToValidate="txtConfirmPassword" runat="server" />
<asp:CompareValidator ErrorMessage="Passwords do not match." ForeColor="Red" ControlToCompare="txtPassword"
ControlToValidate="txtConfirmPassword" runat="server" />
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="btnSumbit" runat="server" Text="Sumbit" OnClick="Insert" /></td>
</tr>
</table>
</form>
C#
protected void Insert(object sender, EventArgs e)
{
int count = 0;
string message = string.Empty;
string username = txtUserName.Text;
string password = txtPassword.Text;
string conString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
using (SqlConnection con = new SqlConnection(conString))
{
using (SqlCommand cmd = new SqlCommand("SELECT count (*) FROM Login WHERE UserName = @UserName AND Password = @Password", con))
{
cmd.Parameters.AddWithValue("@Username", txtUserName.Text.Trim());
cmd.Parameters.AddWithValue("@Password", txtPassword.Text.Trim());
con.Open();
count = Convert.ToInt32(cmd.ExecuteScalar());
con.Close();