Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autocheck the checkboxes

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
Thanks for your suggestion..
atually what I want ot do is , lets say i have a string
A="199,20,200,99,9" then when i open a window that list down checkbox for example :

1. ||199
2. ||34
3. ||70
4. ||200
5. ||50

I want checkboxes no 1 and no 4 will be checked cause the value is there in the string.

How to do that?
try to split it but does'nt work. Please help me.
 
This works..

<%
Dim StrNum, StrSplitNum

strNum = &quot;31,45,99,199,464,6599,32,47,99,324&quot;
strSplitNum = Split(strNum,&quot;,&quot;)

For each sNumber in strSplitNum %>
<%=sNumber%> -- <input type=&quot;checkbox&quot; name=&quot;numbers&quot; value=&quot;<%=sNumber%>&quot;<% If Instr(sNumber, &quot;99&quot;) > 0 then Response.Write &quot; checked&quot;%>><br>
<% Next %> www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top