Hi Ken,
Hope you had a great Christmas. Thanks your reply.
However, this still does not solve the issue at hand.
- <%
- Set AdoCon=Server.CreateObject("ADODB.Connection")
- Set AdoRec=Server.CreateObject("ADODB.Recordset")
- AdoCon.ConnectionString="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=*******;Initial Catalog=AFDDB_DEVY;Data Source=MOMENTUMTEST"
- AdoCon.Open
- AdoRec.Open "Select Custid from APPLICATION",AdoCon
- str=AdoRec.GetString()
- %>
-
-
- for (var i = 0; i < files.length; i++) {
- var name = files[i].FileName;
- if (str==name) {
- alert(files[i].FileName);
-
- }
- }
-
-
- <%
- AdoRec.close
- AdoCon.close
- set AdoRec = Nothing
- set AdoCon = Nothing
- %>
I still am unable to validate across the database with the above code.
For some reason str variable does not want to work against the name variable.
Thanks,
Khan