protected void Login_Click(object sender, EventArgs e)
 {
     JSONBlog.JSONBlogUserCollection collection = new JSONBlog.JSONBlogUserCollection();
     try
     {
         collection.login(LoginUserName.Text, LoginPassword.Text);
     }
     catch (Exception e2)
     {
         LoginStatus.ForeColor = Color.Red;
         LoginStatus.Text =  e2.Message;
     }
 }
Ejemplo n.º 2
0
 protected void Login_Click(object sender, EventArgs e)
 {
     JSONBlog.JSONBlogUserCollection collection = new JSONBlog.JSONBlogUserCollection();
     try
     {
         collection.login(LoginUserName.Text, LoginPassword.Text);
     }
     catch (Exception e2)
     {
         LoginStatus.ForeColor = Color.Red;
         LoginStatus.Text      = e2.Message;
     }
 }
 protected void CreateUser_Click(object sender, EventArgs e)
 {
     JSONBlog.JSONBlogUserCollection collection = new JSONBlog.JSONBlogUserCollection();
     try
     {
         collection.addUser(CreateUserName.Text, CreateUserPassword.Text);
         CreateUserStatus.ForeColor = Color.Black;
         CreateUserStatus.Text = "User successfully created";
     }
     catch (Exception e2)
     {
         CreateUserStatus.ForeColor = Color.Red;
         CreateUserStatus.Text = e2.Message;
     }
 }
Ejemplo n.º 4
0
 protected void CreateUser_Click(object sender, EventArgs e)
 {
     JSONBlog.JSONBlogUserCollection collection = new JSONBlog.JSONBlogUserCollection();
     try
     {
         collection.addUser(CreateUserName.Text, CreateUserPassword.Text);
         CreateUserStatus.ForeColor = Color.Black;
         CreateUserStatus.Text      = "User successfully created";
     }
     catch (Exception e2)
     {
         CreateUserStatus.ForeColor = Color.Red;
         CreateUserStatus.Text      = e2.Message;
     }
 }