Showing posts with label Sharp. Show all posts
Showing posts with label Sharp. Show all posts

Saturday, November 4, 2017

AJAX Code Generator in C Sharp

AJAX Code Generator in C Sharp

The Ajax control toolkit allows the technician to produce a rich interface application (RIA) for end users. The combination of tools composes a cadre of data entry widgets that are second to none. But as always this level of technology comes at a price and the idiosyncrasies of the toolkit are extensive. After searching the web I was able to determine a user friendly toolkit to facilitate utilization of AJAX components did not exist. I never claimed to be the sharpest tool in the shed but I have authored numerous code generators since 1974. So coming up with a human friendly way of leveraging this technology is just another day at the office for me.


A comprehensive data element dictionary is required to provide effective communication between humans and the AJAX tools. The graphical user interface employed in the tool is itself an Ajax application. The tab container, combo boxes and validation extenders makes designing metadata for the code generator a snap! Once the required infrastructure is in place implementation is the next hurdle.


Being familiar with the .NET environment and the tools available for data binding and data manipulation I decided the logical place to begin the quest is with the details view. The desired component allow for creation, retrieval, updating and deleting (CRUD) data records for the associated data source. Templates are the heart and soul of this application. You do not have to convert the bound fields to templates. Their initial form is a fully functioning series of templates. For this exercise do not become overly concerned about the data source. Many of the properties that are important to the DBMS are not important to .NET.


The technician simply employs this tool and all the heavy lifting for AJAX is performed by the code generator. The generated code yields a master detail scenario that employs a grid view for rapid positioning within the data source and when a specific record is selected the details view goes into action. The initial release provides the user with a complete details view whose user interface is fully AJAXified.


Subsequent releases will generate the data source and all the associated SQL queries. Ultimately the code generator will generate all code to make the complete scenario fully operational for most of the more popular DBMS's. I also have plans for a SharePoint web part generator for seamless implementation into existing web farms.


A complete package of the tools to support scaffolding is also on the schedule. I really hate to be the bearer of bad news but the Silverlight approach is also on the auction block next.



Mr. Arch Brooks, Software Engineer
http://archbrooks.com