CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Listbox option class, attributes, title HOW?

Print topic Send  topic

Author Message
rstewart


Posts: 17
Posted: 12/18/2007, 5:53 AM

I need to add a title tag to the each option of a listbox. (server side)

<select name="{Category_Name}">
<option value="" selected>Select Value</option>
{Category_Options}
</select>

How do you do this when the classes.asp builds to {Category_Options} tag?

I tried using an expression in the bound Bound Column:
e.g. [Category] + ' Title=' + [another field]
However, the classes.asp uses the keylist array to assign the SELECTED tag.
Hence, the Bound Column will never match up to add a SEECTED tag.

what I need are the option to look like this:
<option value="monday" Title="day one">Monday</option>
<option value="monday" Title="day 1">Monday</option>
<option value="tuesday" Title="day 2" SELECTED>Tueday</option>
<option value="wednesday" Title="day 3">Wednesday</option>

How can I add an attribute or css class or title or whatever to the option tag?????:-(




_________________
looking for work in a sunny country.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.