Intersoft WebCombo Documentation
Value Property
See Also  Send Feedback
ISNet.WebUI.WebCombo Namespace > WebCombo Class : Value Property






Returns or sets the value for WebCombo control. Returns or sets the value for WebCombo control.

Syntax

Visual Basic (Declaration) 
<XmlTextAttribute(System.String)>
<ISNet.Serialization.XmlSerializableAttribute()>
<BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)>
<DescriptionAttribute("Returns or sets the value for WebCombo control.")>
<ISNet.Serialization.BinarySerializableAttribute()>
<DefaultValueAttribute()>
Public Property Value As String
Visual Basic (Usage)Copy Code
Dim instance As WebCombo
Dim value As String
 
instance.Value = value
 
value = instance.Value
C# 
[XmlTextAttribute(System.String)]
[ISNet.Serialization.XmlSerializableAttribute()]
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[DescriptionAttribute("Returns or sets the value for WebCombo control.")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
public string Value {get; set;}
Delphi 
public read-write property Value: String; 
JScript 
XmlTextAttribute(System.String)
ISNet.Serialization.XmlSerializableAttribute()
BindableAttribute(Bindable=, Direction=BindingDirection.OneWay)
DescriptionAttribute("Returns or sets the value for WebCombo control.")
ISNet.Serialization.BinarySerializableAttribute()
DefaultValueAttribute()
public function get,set Value : String
Managed Extensions for C++ 
[XmlTextAttribute(System.String)]
[ISNet.Serialization.XmlSerializableAttribute()]
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[DescriptionAttribute("Returns or sets the value for WebCombo control.")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
public: __property string* get_Value();
public: __property void set_Value( 
   string* value
);
C++/CLI 
[XmlTextAttribute(System.String)]
[ISNet.Serialization.XmlSerializableAttribute()]
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[DescriptionAttribute("Returns or sets the value for WebCombo control.")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
public:
property String^ Value {
   String^ get();
   void set (    String^ value);
}

Remarks

You can set the Value property in code at runtime to set initial value for the WebCombo control. This property is also available at design time.

Value property has behaviors as below:

  • On databinding process, it will automatically check the existence of Value property in the DataSource. If the specified Value is found, the Text property will be automatically populated based on DataTextField property. Otherwise, the Value and Text will be set to empty.
  • The value property will also be automatically populated on every postback based on last active selection. You may also programmatically set a different value on postback event.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.