ForLoop Nesting

I have a question about ASP code. I'm not figuring out what the problem is.....driving What i'm trying to do is nesting 2 forloops into each other calling different variables, but i get an error like "type mismatch". Do you know whats wrong??

This is the code:

<%
Dim specialisme(5)
specialisme(1) = "Radiologie"
specialisme(2) = "Anesthesiologie"
specialisme(3) = "Cardiologie"
specialisme(4) = "Chirurgie"
specialisme(5) = "Dermatologie"

Dim Radiologie(4)
Radiologie(1) = "Radiologie MRI"
Radiologie(2) = "Radiologie CT"
Radiologie(3) = "Radiologie Mammografie"
Radiologie(4) = "Radiologie Echografie"

..........

View Replies


ADVERTISEMENT

Nesting Includes In Asp

would there be a limit to the amount of nesting one can do with includes in asp? what would be a good rule of thumb?

View Replies View Related

Nesting Of <% %> Tags

can I nest <% %> tags?

This is what I want to do:

This statment

<td width="<%response.write span%> %"><img src=<% response.write "'/images/" & trim(records.Fields("c1_image")) & "'" %> height=100>

Generates this HTML code

<td width="16%"><img src='/images/rlm04.bmp' height=100>

SO FAR , SO GOOD...

This statement:

<% response.write "(" & """" & "c" & i & "_image" & """" & ")" %>

generates this:

("c1_image")

CAN YOU SEE WHERE I'M GOING WITH THIS?

I need the field name in my records.fields statement to be avariable based on a loop counter....NESTED <% %> tags, or response.write or whatever.

View Replies View Related

Nesting One Loop Within Another, Using 1st Loop As Criteria For 2nd

I have a recordset that I loop through all of the data within a table, within the same loop, I am trying to add another loops that pulls information from the first recordset to base the second recordset off of: Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved