PageMethods what is issue with it?
<p>I'm getting "Object Error" on line</p>

<pre><code>function readWURecord()
{
var ifUSD = "";
try
{var mtcnNo=document.getElementById('ctl00_ContentPlaceHolder1_TxtReferenceNo').value;
if(mtcnNo=='')
{
alert('Provide Reference Number');return false;}
var adoConn=new ActiveXObject("ADODB.Connection");
var adoRS=new ActiveXObject("ADODB.Recordset");
var filename;
var filenamecsv1;
fs=new ActiveXObject("Scripting.FileSystemObject");
filename=document.getElementById('ctl00_ContentPlaceHolder1_hdPath').value+'Trans.mdb';
filenamecsv1="D://Data.csv";
if(fs.FileExists(filename)==true)
{
adoConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+filename+";Persist                                         Security Info=True;Jet OLEDB:Database Password=tradb897");
}
else if(fs1.FileExists(filenamecsv1)==true)
{
PageMethods.GetCurrentTime(document.getElementById("&lt;%=TxtReferenceNo.ClientID%&gt;").value);
</code></pre>

<p>and</p>

<pre><code>function OnSuccess(response, userContext, methodName)
{
alert("response");
}
</code></pre>

<p>Can anybody help me what issues are with <strong>PageMethods.GetCurrentTime</strong> method?</p>
