EasyDotNet - DataForm.NET V3.4 Developer Guide
Controls Manager

DataForm.NET provides several built-in web server controls for data entry. However, there are so many great components on the market and perhaps you have already purchased some of them and have been using them for a long time. To protect your investment and don't let both of us miss out those great components, from version 2.1, DataForm.NET supports 3rd party controls, as long as those controls derive from System.Web.UI.Control class which most web server controls for ASP.NET should. So they are eligible to integrate into DataForm.

Manage 3rd party controls
  1. Open DataForm.NET Manager.
  2. Choose "Edit/Controls Manager" from menu to manage 3rd party controls.
  3. The upper table shows all 3rd party controls that have been added to DataForm.NET, but built-in web controls are not displayed.
  4. Fill out the table underneath . If you are not sure the assembly information, click "Get Assembly information" link to help you complete the table. Please read note first.
  5. Click "Save" button to add/update the control. Click "Delete" button to remove this control from DataForm.NET.
  6. Go back to DataForm Designer, choose a DataForm and click one of its field, you will find a control name that you just added displaying in the Control Type dropdown list.

Coding with 3rd party control

Every controls that can integrate into DataForm.NET are derived from System.Web.UI.Control class, so they can be accessed by "FindControl" method. For instance:

[VB] Dim ctrl_3rd As YourControl = CType(EDataForm1.FindControl(FieldID), YourControl)

[C#] YourControl ctrl_3rd = (YourControl)EDataForm1.FindControl(FieldID);

If you just want to set or get its value, use eDataForm's default property(eDataForm.ItemValue property). For instance:

[VB]
'Sets control's value
EDataForm1(FieldID) = "your string goes here"

'Gets control's value
Dim str as String = EDataForm1(FieldID)

[C#]
//Sets control's value
EDataForm1[FieldID] = "your string goes here";

//Gets control's value
string str = EDataForm1[FieldID];

See also
DataForm.NET Manager Overview | Integrate DataForm.NET into your application | Add DataForm.NET | Delete DataForm.NET | Duplicate DataForm.NET | Export DataForm.NET | Import DataForm.NET | DataForm.NET Category | Samples
Syntax based on .NET Framework version 1.1/2.0.

Send feedback to EasyDotNet
© 2002-2007 EasyDotNet Corporation. All rights reserved.