/// <summary> /// Rediriects the user to the answer page with an answer string /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void send_Click(object sender, EventArgs e) { int timeSpan = GetTimeSpan(start); product = new prodInfo(TextName.Text, TextPlace.Text, TextCity.Text, Convert.ToInt32(TextPrice.Text), Convert.ToInt16(DropDownCurrncy.SelectedValue), Convert.ToInt16(DropDownMessurment.SelectedValue), Convert.ToInt32(TextAmount.Text), timeSpan); inter = new Interpartor(product); Response.Redirect("Answer.aspx?num=" + inter.getAns() + "&text=" + inter.noraml()); }
//what to do when the user clicks the ask button protected void send_Click(object sender, EventArgs e) { product = new prodInfo(TextName.Text, TextPlace.Text, TextCity.Text, Convert.ToInt32(TextPrice.Text), Convert.ToInt16(DropDownCurrncy.SelectedValue), Convert.ToInt16(DropDownMessurment.SelectedValue), Convert.ToInt32(TextAmount.Text)); product.save(); inter = new Interpartor(product); Response.Redirect("Answer.aspx?" + inter.getAns()); }