In the VB Code behind, there is a function that uses parameters to output a datatable
, which is then used in the front end to place markers on Google Maps. The requirement from the front end is to send a user-entered variable.
Javascript Pseudo:
if (a = true){
var varName = inputBox.value;
var passer1 = chkCondition1();
var passer2 = chkCondition2();
if (passer1 == true && passer2 == true) {
Coordinates = JSON.parse('<%=ConvertTabletoString(varName) %>');
}
else {
//do other stuff
}
An error message is appearing:
Error 2 'varName' is not declared. It may be inaccessible due to its protection level.
The solution to this issue is currently unclear. Is there any alternate way to proceed?