Hi,
I need to have a page which checks against a database query to see if a barcode has already been entered and display an alert box if this is the case.
While I can get Response.Write to display the correct msg I cannot get the alert fn to work could someonr please help
<%@ Language=JavaScript %>
<%
var findit = "emrtest1.asp";
var bcode = String(Request("bcode"
);
%>
<!-- #include file="dsn1.js" -->
<%
var que = "select BarCode from SUTProperty where BarCode = '"+ bcode +"'";
rs = Server.CreateObject("ADODB.RecordSet"
;
rs.Open (que, Conn);
while (! (rs.EOF))
{
var b2code = String(rs.fields.item("BarCode"
);
rs.move(1);
} // end while recordset
if (b2code == bcode)
{
alert(b2code + 'BarCode is invalid');
}
I need to have a page which checks against a database query to see if a barcode has already been entered and display an alert box if this is the case.
While I can get Response.Write to display the correct msg I cannot get the alert fn to work could someonr please help
<%@ Language=JavaScript %>
<%
var findit = "emrtest1.asp";
var bcode = String(Request("bcode"
%>
<!-- #include file="dsn1.js" -->
<%
var que = "select BarCode from SUTProperty where BarCode = '"+ bcode +"'";
rs = Server.CreateObject("ADODB.RecordSet"
rs.Open (que, Conn);
while (! (rs.EOF))
{
var b2code = String(rs.fields.item("BarCode"
rs.move(1);
} // end while recordset
if (b2code == bcode)
{
alert(b2code + 'BarCode is invalid');
}