dWebSpec Dictionary
CONTEXT: descriptors->element->conversion-type




All Details Standard Only Platform Only
Structured Web info and helpTechnologies
 Home Page
 Product Page
 Download Page
 Feedback
Javascript Tree Menu

Results for:

 element.conversion-type 
Prev  Topic  Next

The standard html entries are presented as strings on the page. However, their values could be bound to other types of objects and primitives. These could be numeric, date or other types. The conversion type specification allows for the designation of such types. The dWebSpec standard types are listed below:

  • string (default)
  • byte
  • short
  • integer
  • long
  • float
  • double
  • date
  • collections

The standard types would ensure platform independence. However, if such independence is not needed, or else as specification matures, platform specific or custom types could or should be included.

 ASP.NET  
The implementation implications of this attribute vary from platform to platform. Primarily, it specifies the type that the string entries in the browser must be compatible with, usually to allow data transfer to the model.

On some platform, it could imply some type conversion class; this would have methods to do validations and conversion. For ASP.NET this does not lead to the specification of conversion class.

Without conversion class, it is usual to employ string conversion to the attribute type in the model. To avoid runtime errors it might be necessary to use validation specification to enforce compatibility of the string entered with the bound attribute type in the model.

The standard dWebSpec types and their ASP.NET equivalents are shown in the table below.

dWebSpec Standard Types

Short Name

Class

string (default)

string

System.String

byte

byte
sbyte

System.Byte
System.SByte

short

short
ushort

System.Int16
System.UInt16

integer

int
uint

System.Int32
System.UInt32

long

long
ulong

System.Int64
System.UInt64

float

float

System.Single

double

double

System.Double

bool

bool

System.Boolean

date

 

 

collections

 

 

Prev Next