Brijesh Nishad

Brijesh Nishad

  • NA
  • 1
  • 495

Google Chrome page loaded two times

Apr 13 2016 8:17 AM
why Google chrome is page loaded two times but other browsers working fine in asp.net?
 
 
protected void AddProductToSession(object sender, EventArgs e)
{
Bill product1 = new Bill(Productname.Text, int.Parse(ProductID.Text), int.Parse(quantityProduct.Text), int.Parse(UnitPrice.Text), int.Parse(TotalPrice.Text));
InvoiceModel invoiceNew = null;
invoiceNew = (InvoiceModel)Session["InvoiceModel"];
//invoiceNew = invoicemodel;
invoiceNew.bill.Add(product1);
ProductTableInvoice.Visible = true;
String txt = "";
txt += "<table class=\"table table-striped table-hover table-bordered\" id=\"ItemtableProduct\" >"
+ "<thead><tr><th>#</th><th>Product Name</th><th>Quantity</th><th>Unit Price</th><th>Total Price</th><th>Control</th>"
+ "</tr></thead><tbody>";
for (int i = 0; i < invoiceNew.bill.Count; i++)
{
txt += "<tr><td>" + (i + 1) + "</td><td>" + invoiceNew.bill[i].Productname + "</td>"
+ "<td>" + invoiceNew.bill[i].quantity + "</td><td>" + invoiceNew.bill[i].Unitprice + "</td>"
+ "<td>" + invoiceNew.bill[i].totalAmount + "</td><td>"
+ "<a class=\"delete\" href=\"javascript:;\">Delete</a></td></tr>";
}
txt += "</tbody></table>";
ProductTableInvoice.InnerHtml = txt;
Session["InvoiceModel"] = invoiceNew;
//invoicemodel = invoiceNew;
SubmitButtonDiv.Visible = true;
}

Answers (1)