Using the ASP.NET Parameter Object in ASP.Net

The ASP.NET parameter object has the following properties:
  • ConvertEmptyStringToNull : When true, if a parameter represents an empty string then the empty string is converted to the value Nothing (null) before the associated command is executed.
  • DefaultValue : When a parameter has the value Nothing (null), the DefaultValue is used for the value of the parameter.
  • Direction : Indicates the direction of the parameter. Possible values are Input, InputOutput, Output, and ReturnValue.
  • Name : Indicates the name of the parameter. Do not use the @ character when indicating the name of an ASP.NET parameter.
  • Size : Indicates the data size of the parameter.
  • Type : Indicates the .NET Framework type of the parameter. You can assign any value from the TypeCode enumeration to this property.
You can use the ASP.NET parameter object to indicate several parameter properties explicitly, such as a parameter’s type, size, and default value.
Tags: ,
Hot on Web:


About author