protected void Button1_Click(object sender, EventArgs e) { String id = Label2.Text; name = TextBox1.Text; email = TextBox2.Text; city = TextBox3.Text; country = TextBox4.Text; lat = TextBox5.Text; lon = TextBox6.Text; ArrayList form_data = new ArrayList(); form_data.Add(id); form_data.Add(name); form_data.Add(email); form_data.Add(city); form_data.Add(country); form_data.Add(lat); form_data.Add(lon); tryapp.Operations action = new tryapp.Operations(); if (Label1.Text == "Accounts") { action.accUpdate(GlobalClass.s_conf, form_data); Label3.Text = "Account updated"; } if (Label1.Text == "Contacts") { action.conUpdate(GlobalClass.s_conf, form_data); Label3.Text = "Contact updated"; } if (Label1.Text == "Leads") { } }
protected void Button2_Click(object sender, EventArgs e) { tryapp.Operations action = new tryapp.Operations(); Session["details"] = action.GetAll(GlobalClass.s_conf); Session["accsize"] = action.acc_size; Session["consize"] = action.c_size; Response.Redirect("maps.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { tryapp.Operations action = new tryapp.Operations(); Session["details"] = action.criteria(GlobalClass.s_conf, DropDownList1.SelectedIndex, DropDownList2.SelectedIndex); Session["entity"] = DropDownList1.SelectedItem.Value; Session["accsize"] = "0"; Session["consize"] = "0"; Response.Redirect("maps.aspx"); }