troubleshooting Question

Calculate Sum on aspx page, then insert figure on aspx.vb page

Avatar of DueFrom
DueFrom asked on
11 Comments1 Solution727 ViewsLast Modified:
function fnCalculateSum()
var result = 0;
result = result + parseInt(document.getElementById("<%=Textbox1.ClientID%>").value);
result = result + parseInt(document.getElementById("<%=Textbox2.ClientID%>").value);

document.getElementById("<%=Textbox9.ClientID%>").value = result;


I am using above code in my aspx page to sum textbox1 and textbox2 and show the calculated sum in textbox9.  But on aspx.vb page, if i try to do a insert into sqldatabase the TextBox9.Text  is empty here.   I must be missing something that brings the value from 1st page into code behind.  


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros