Current location: Hot Scripts Forums » Programming Languages » ASP.NET » i need little help in ASP code


i need little help in ASP code

Reply
  #1 (permalink)  
Old 10-05-04, 06:17 PM
al22 al22 is offline
New Member
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
i need little help in ASP code

<%dim cheeses
cheeses = Request.Form("cheeses")%>
<!-- To display multiple select list -->
<tr>
<td bgcolor="#FFFF80"><strong><font color="#0051FF">Multiple select list</font></strong></td>
<td bgcolor="#FFFF80"><strong><font color="#000000">
<!--This code is counting the number of items selected -->
<%if request.form("cheeses") <> "" then
for j =0 to request.form("cheeses").Count
next
Response.Write(j)
end if%>
</font></strong>&nbsp;</td>
<td bgcolor="#FFFF80"><strong><font color="#000000">
<font color=#FF0000>

<!-- -->
<!-- I need help with the following code.-->
<!-- -->
<!-- Here i am trying to print if the 3rd item is selected or not-->
<!-- It gives me the right answer when i choose only 1 item but if i
choose more than one it doesnt give me the right answer-->

<%if cheeses <> "party" then Response.write("3rd list item not selected")%>
<% if cheeses = "party" then Response.write("party")%>
</font></strong>&nbsp;</td>
<td bgcolor="#FFFF80"><strong><font color="#000000">

<%For counter =1 To Request.Form("cheeses").Count
Response.Write "" & Request.Form("cheeses")(counter) & "<br>"
Next
%>
</font></strong>&nbsp;</td>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server object error 'ASP 0177 : 800401f3' violet ASP 3 09-02-04 10:02 PM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 12:19 PM
PHP integrated with ASP Mikeirv PHP 7 05-25-04 06:00 AM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 01:10 PM
protecting code in PHP ckb PHP 12 01-02-04 09:53 AM


All times are GMT -5. The time now is 07:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.