Daily Archives: December 1, 2008

JavaScript usage in Web Part

JavaScript is a dynamic, weakly typed, prototype-based language with first-class functions usually used for client-side web pages development. Best known for their use in web pages development, JavaScript finds a larger use in web parts. A web part is an integrated set of ASP.NET server control that enable end users to modify the content, appearance, and behavior of web parts directly from a browser at run time.

The primary usage of JavaScript in web parts is to write functions, which are embedded in the HTML pages and enable interaction with the Document Object Model (DOM) of the web page.

Various other usages of JavaScript in web parts are adding pop ups. This enables opening a new window with programmatic control over the size, position, and attributes of the new window. JavaScripts are also useful in validation of web form input values, changing images as the mouse cursor moves over the scripts.

 

Benefits of ADO.NET

ADO.NET, a part of the base class library included with the Microsoft .NET Framework, is a set of computer software components used by programmers to access data and data services.

ADO.NET offers numerous advantages compared to its previous versions of ADO and other data access components.

Along with its supports for programmers to access and modify data stored in Relational Database systems, various other benefits of the ADO.NET can be listed as follows;

1. Interoperability- You can avail the advantage of the flexibility and broad acceptance of XML in ADO.NET applications.

2. Maintainability- Various substantial, architectural changes and transformations required in the life of a deployed system can be easily carried out, if the application is implemented in ADO.NET using datasets.

3. Programmability- ADO.NET data components enables you program more quickly and with fewer mistakes in Visual Studio encapsulate data access functionality. It also allows you to access data through typed programming as ADO.NET data classes generated by the designer tools result in the typed datasets.

4. Performance- ADO.NET datasets offer performance advantages, for disconnected applications, over ADO disconnected record sets.

5. Scalability- ADO.NET enables scalability by helping the programmers to conserve limited resources.