Nikulsinh Rathod

Nikulsinh Rathod

  • NA
  • 10
  • 1.7k

How to create Mobile number tracing system on my ASP.NET web

Sep 21 2014 7:05 AM

Hello guys,

Today I am make my BCA Project, but some problem on my project like a

Create a Mobile number tracking system, and locating a mobile number. I am also use some code like below.
 
Default.aspx
<head>
<script src="locate.js" type="text/javascript"></script>
</head>
<body> 
<form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    Mobile Number Locater
                </td>
                <td>
                    <asp:TextBox ID="txtMobileNo" runat="server" MaxLength="10"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Trace" OnClientClick="return GetPhnlocation();" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <div align="center" id="name" style="font-weight: bold;">
                    </div>
                    <div align="center" id="company" style="font-weight: bold;">
                    </div>
                    <div align="center" id="idno" style="font-weight: bold;">
                    </div>
                    <div align="center" id="info" style="font-weight: bold;">
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body> 
 
locate.js
 function GetPhnlocation()
{
var phone = document.getElementById('txtMobileNo');
var number = document.getElementById('name');
var state=document.getElementById('company');
var provider=document.getElementById('idno');
var service=document.getElementById('info');
var code = phone.value.slice(0, 4);
var re = /^[0-9]+$/;
  if (phone.value != '' && re.test(phone.value)&& (phone.value.length==10) )
  {
   if (code == "9000")
   {
   number.firstChild.nodeValue = 'Mobile No: ' + phone.value;
   state.firstChild.nodeValue = 'State: Andhra Pradesh';
   provider.firstChild.nodeValue = 'Service Provider: Airtel';
   service.firstChild.nodeValue = 'Service Type: GSM';
   return false;
   }
  }
}
 
-------------------------------
But, can not work above code's , anyone can help me ...  
 

Answers (1)