mike
|
| Posted: 08/04/2004, 3:52 AM |
|
hello,
is it possible to have 2 or more option parameters with the same value?? the select is filled well by a stored procedure:
it should be like:
<select runat="server">
<option value=ww>ww</option>
<option value=bb>bb</option>
<option value=ww>ww</option>
<option value=aa>aa</option>
</select>
BUT in the internetexplorer i see only
<select runat="server">
<option value=ww>ww</option>
<option value=bb>bb</option>
<option value=aa>aa</option>
</select>
thanks
|
|
|
 |
mike
|
| Posted: 08/04/2004, 5:16 AM |
|
Quote mike:
hello,
is it possible to have 2 or more option parameters with the same value?? the select is filled well by a stored procedure:
it should be like:
<select runat="server">
<option value=ww>ww</option>
<option value=bb>bb</option>
<option value=ww>ww</option>
<option value=aa>aa</option>
</select>
BUT in the internetexplorer i see only
<select runat="server">
<option value=ww>ww</option>
<option value=bb>bb</option>
<option value=aa>aa</option>
</select>
thanks
is this a DISTINCT problem?
|
|
|
 |
Walter Kempees
|
| Posted: 08/04/2004, 11:24 AM |
|
Hi Mike,
If your select is anything like
Select distinct(field1),field2 from table
then YES it is the distinct that does it.
On the other hand, having your 4 values in the select, and a user selecting
'ww' would always result in the last ww to be truely selected.
Meaning:
if your table would be
> <option value=ww>ww1</option>
> <option value=bb>bb</option>
> <option value=ww>ww2</option>
> <option value=aa>aa</option>
and I would choose ww1 as my preferred value from the list, 'ww' would be
the value to store in the database.
Upon retreival, editing the same record for instance, ww2 would be the value
displayed as it is the last value belonging to the code 'ww'.
This list, in my humble opinion, woul be a useless one, better to use
numeric, alpha.
like
1, ww1
2, bb
3, ww2
4, aa
Greetz, Walter
"mike" <mike@forum.codecharge> schreef in bericht
news:24110d3b1eee1e@news.codecharge.com...
> Quote mike:
> hello,
> is it possible to have 2 or more option parameters with the same value??
the
> select is filled well by a stored procedure:
>
> it should be like:
> <select runat="server">
> <option value=ww>ww</option>
> <option value=bb>bb</option>
> <option value=ww>ww</option>
> <option value=aa>aa</option>
> </select>
>
> BUT in the internetexplorer i see only
> <select runat="server">
> <option value=ww>ww</option>
> <option value=bb>bb</option>
> <option value=aa>aa</option>
> </select>
>
> thanks
>
>
> is this a DISTINCT problem?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|