protected void btnCreateUser_Click(object sender, EventArgs e) { WebPostRequest req = new WebPostRequest("http://student.pinnacle3learning.com/index.php/add-a-user"); var dic = new Dictionary<string, string>(); dic.Add("import", "1"); dic.Add("name", "jon jon"); dic.Add("email", "*****@*****.**"); string s = req.ExecutePostRequest(dic); lblMessage.Text = s; }
private bool doCreateUserInStudentRegistrationSystem(string name, string email) { bool success = true; WebPostRequest req = new WebPostRequest(ConfigurationManager.AppSettings["SRS_AddAUser_Url"]); var dic = new Dictionary<string, string>(); dic.Add("import", "1"); dic.Add("name", name); dic.Add("email", email); try { var s = req.ExecutePostRequest(dic); if (!s.Contains("has been added to the joomla membersystem")) success = false; } catch { success = false; } return success; }