General information
Category:
Active Server Page
Good Morning Nicholas ;
We all have our own approach to what ever we do - programming is no different. I do not use DTC's, rather I write the code necessary to create an object. To provide formating I use a procedure such as this example in VB Script (use whatever scripting language you like).
Also, I set the maxlength to the field length in case the field size changes (Impossible!). Tags, etc. indicated below are not correct due to formating requirements of the UT.
< INPUT id="txtQuantity" TYPE="TEXT" Name="txtQuantity"
style="FONT-SIZE: 9pt;
HEIGHT: 20px;
LEFT: 575px;
POSITION:absolute;
TOP: 260px;
WIDTH: 60px"
Value="< %=trim(oReworkRS("Quantity"))% >"
ReadOnly
maxlength="< %=oReworkRS("Quantity").definedsize%>" >
Using ADO,
sub txtQuantity_Onblur()
if len(frmReworkDetail.txtQuantity.value) > 0 then
if not IsNumeric(frmReworkDetail.txtQuantity.value) then
alert ("Not a valid number")
frmReworkDetail.txtQuantity.focus
end if
end if
end sub
Tom
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only