tmurray22
asked on
ASP html need to trim value
I have a form hat produces checkboxes dynamically. The values though are too long. How do
just get it to display the first 40 charatacters.
here is my code:
%>
<tr><td><input type=checkbox name=build <%=strSelected%> value="<%=objRS("cis")%>"> </td>
<td><%=objRS("cis")%></td>
</tr>
<%
just get it to display the first 40 charatacters.
here is my code:
%>
<tr><td><input type=checkbox name=build <%=strSelected%> value="<%=objRS("cis")%>">
<td><%=objRS("cis")%></td>
</tr>
<%
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
cis = left("" & objRS("cis"), 40)
%>
<tr><td><input type=checkbox name=build <%=strSelected%> value="<%=cis%>"></td>
<td><%=objRS("cis")%></td>
</tr>
<%