Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
var _selOGC = document.getElementById('<%= this.txtOGCCommand.ClientID %>').value;
           var _ogc = _selOGC.indexOf("$IT+");
           if (parseInt(_ogc) != 1)
           {
               alert ('<%= this.GetGlobalResourceObject("resOGCommand","validOGC") %>');
               document.getElementById('<%= this.txtOGCCommand.ClientID %>').focus();
               //return false;
           }






i ve a module named ogc wen i add some junk other than "$IT+" it will pop up a msg saying please add valid ogc
wen i add proper format and save it ll display same pop up msg but the data will be saved.
where m i going in the script?
Posted

1 solution

try

JavaScript
if (parseInt(_ogc) != -1)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900