to check the quantity

M

maha

following asp script has an error please correct it
<%
function checkqty()
if (frmstoadd.text1.value="") then
MsgBox("ENTER THE QUANTITY")
frmstoadd.text1.focus()
elseif (IsNumeric(frmstoadd.text1.value)) then
if ((frmstoadd.text1.value)<>(cint(frmstoadd.text1.value))) then
MsgBox("QUANTITY SHOULD BE IN INTEGER")
frmstoadd.text1.focus()
end if
elseif not (IsNumeric(frmstoadd.text1.value)) then
MsgBox("QUANTITY SHOULD BE IN NUMERIC")
frmstoadd.text1.focus()
end if
end function
%>
 
K

Kevin Spencer

Yassuh! Right away sah!

--
LOL,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
K

Kevin Spencer

Okay, I'm calmed down now.

The script you posted is only an ASP script in that it is enclosed in ASP
script tags. Other than that, it is client-side VBScript, and has nothing to
do with ASP. Of course, with those ASP script tags around it, it won't
execute on the client either.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top