KaxRatingDbValue Property |
Gets or sets the value of KaxRating in a database-friendly way.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax[TypeConverterAttribute(typeof(DecimalConverter))]
public Object DbValue { get; set; }
<TypeConverterAttribute(GetType(DecimalConverter))>
Public Property DbValue As Object
Get
Set
public:
[TypeConverterAttribute(typeof(DecimalConverter))]
property Object^ DbValue {
Object^ get ();
void set (Object^ value);
}
[<TypeConverterAttribute(typeof(DecimalConverter))>]
member DbValue : Object with get, set
Property Value
Type:
Object
A
Decimal object that represents the value.
The default value is 0m.
Remarks
This property behaves exactly as the Value property.
The only difference is that it will not throw an exception if the new value is null or
DBNull. Setting a null value will revert the selected value to 0m.
Examples
The following example demonstrates how to use the
DbValue
property to set the value of KaxRating.
private void Page_Load(object sender, System.EventArgs e)
{
KaxRating1.DbValue = tableRow["Rating"];
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
KaxRating1.DbValue = tableRow("Rating")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also