public void saceUserSatisfaction(UserSatisfaction s) { List <DALType> infoData = new List <DALType>(); infoData.Add(new DALString(_user.user_id)); infoData.Add(new DALString(s.GeneralSatisfication)); infoData.Add(new DALString(s.AgentSatisfaction)); infoData.Add(new DALString(s.Payment)); infoData.Add(new DALString(s.ParticipateAgain)); infoData.Add(new DALString(s.Comments)); List <List <DALType> > data = new List <List <DALType> >(); data.Add(infoData); d.writeData(satisfactionTable, data); }
protected void btnNext6_Click(object sender, EventArgs e) { UserSatisfaction s = new UserSatisfaction(DropDownList7.Text, DropDownList8.Text, DropDownList9.Text, DropDownList10.Text, TextArea1.Text); UserManager m = new UserManager((User)Session["User"]); m.saceUserSatisfaction(s); NameValueCollection data = new NameValueCollection(); data.Add("assignmentId", ((User)Session["User"]).turkAss); data.Add("workerId", ((User)Session["User"]).user_id); data.Add("hitId", ((User)Session["User"]).hitId); Alert.RedirectAndPOST(this.Page, "https://www.mturk.com/mturk/externalSubmit", data); }