I done some calculation in my aspx page by javascript but after calculation output on textbox is like NaN
NaN error in java-script calculation in asp.net in Mozilla fire-fox
Work fine in google chrome and internet explorer
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sapana firkePosted Jun 17, 2013, 4:45 AM
Jignesh TrivediPosted Jun 17, 2013, 3:57 AM
hi,
there is one function called "isNaN", with the help of this function we can identify whether the value is null or not,
var testString;
var boolTest = isNaN(testString);
Please refer
http://www.w3schools.com/jsref/jsref_isnan.asp
http://msdn.microsoft.com/en-us/library/ie/66ztdbe6(v=vs.94).aspx
hope this will help you.
Riyaz AkhtarPosted Jun 17, 2013, 2:53 AM
var str =parseInt( document.getElementById('<%=txtbookingamtbbooking.ClientID %>').value);
sapana firkePosted Jun 17, 2013, 1:10 AM
Sanjeeb LenkaPosted Jun 17, 2013, 12:55 AM