TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Brijesh Nishad
NA
1
541
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;
}
Reply
Answers (
1
)
How to add dynamic items to view?
which View engine [Razor or Aspx] should i prefer for dev.