[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

I need to pad a zero in front of this value

Asked by jeffeades in Scripting Languages, Web Authoring, Miscellaneous Web Development

Tags: Dreamweaver asp right

I am trying to send this data to a payment service. The MS SQL table returns a 9 digit number and the website I am sending it to requires a 10 digit number. I can put a 0 between value=" and <%=(R. This will allow the 9 digit number to work but it kills my 10 digit numbers since the value is now 11 digits. Does anyone know how I can do either an if statement or an asp right command to make the 9 digit numbers 10 digits with a lead 0 and leave my 10 digit numbers untouched.

<input type="hidden" name="acct_number" value="<%=(Recordset2.Fields.Item("BILLERPAYORID").Value)%>">
[+][-]10/14/09 01:45 PM, ID: 25575016Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/14/09 02:04 PM, ID: 25575253Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/16/09 11:34 AM, ID: 25592090Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625