ho una combo box
in questa combo deve fare comparire tutti i campi di una tabella.
ma come valore di default il dato di una tabella, ovviamente i dati sono collegati fra loro.
ho scritto cosi
<select name="cod_art" id="cod_art">
<option value=""<%If (Not isNull((GENERAL.Fields.Item("ItemName").Value))) Then If ("" = CStr((GENERAL.Fields.Item("ItemName").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>></option>
<%
While (NOT GENERAL.EOF)
%><option value="<%=(articoli.Fields.Item("ItemCode").Value) %>" <%If (Not isNull((articoli.Fields.Item("ItemName").Value))) Then If (CStr(articoli.Fields.Item("ItemCode").Value) = CStr((articoli.Fields.Item("ItemName").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(articoli.Fields.Item("ItemName").Value)%></option>
<%
GENERAL.MoveNext()
Wend
If (GENERAL.CursorType > 0) Then
GENERAL.MoveFirst
Else
GENERAL.Requery
End If
%>
qualcuno puo aiutarmi??

Rispondi quotando
non avessi niente da fare...
