CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Listbox ListOfValues: How to Select a Default value??

Print topic Send  topic

Author Message
ab5ni


Posts: 177
Posted: 03/29/2007, 7:17 AM

Folks,

Okay. How do you do this? I've tried a couple of things
off the top of my head, and it's a no-go situation.


TIA!

Randall

_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!


View profile  Send private message
micjon

Posts: 8
Posted: 03/29/2007, 7:56 AM

Add the following to the HTML for the listbox

                <option value="" selected>NONE</option>


placing your default value in the value= portion. If you do it this way, make sure this option is not already in your value list. If you wish to default to a value in the list, add code to the BeforeShow event of the listbox control and set the listbox value to your default value.

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.