Beginning ASP2
Beginning ASP2
With ASP.NET 3.5, Microsoft aims to continue its success by refining and enhancing ASP.NET. the
good news is that Microsoft hasn’t removed features, replaced functionality, or reversed direction.
Instead, almost all the changes add higher-level features that can make your programming more
productive.
ASP.NET 1.0: this first release created the core ASP.NET platform and introduced a wide
range of essential features.
ASP.NET 1.1: this second release added performance tune-ups and bug fixes, but no new
features.
ASP.NET 2.0: this third release piled on a huge set of new features, all of which were built on
top of the existing ASP.NET plumbing. The overall emphasis was to supply developers with
prebuilt goodies that they could use without writing much (if any) code. Some of the new
features included built-in support for website navigation, a theming feature for
standardizing web page design, and an easier way to pull information out of a database.
ASP.NET 3.5: this fourth release keeps the same basic engine as ASP.NET 2.0, but adds a few
frills and two more dramatic changes.the most significant enhancement is the ASP.NET AJAX
toolkit, which gives web developers better tools for creating highly responsive web pages
that incorporate rich effects usually seen in desktop applications (such as drag-and-drop and
autocomplete). The other innovation is support for LINQ, a set of language enhancements
included with .NET 3.5 that allows you to search in memory data in the same way that you
query a database.
If you’re wondering what happened to ASP.NET 3.0- well, it doesn’t exist somewhat
confusingly, Microsoft used the .NET 3.0 name to release a set of new technologies,
including windows presentation foundation (WPF),a platform for building stick windows
applications; windows workflow foundation(WF),a platform for modelling application logic
using flow chat-style diagrams; and windows communication foundation (WCF), a platform
for designing services that can be called from other computers. However, .NET 3.0 did not
include an updated version of ASP.NET.
Methods
The Methods, used as a important for building blocks for organising a code. Fundamentally,
these methods are grouped for one or more lines of code. Every one method will execute a
different logical task. By breaking down the code by methods it is easy to simplify and
arrange the code into classes and set object- oriented programming.
A decision first to be made before declaring any method, as to whether it is easy gets any
information. For example, GetStartTime will give the information on the time and date when
the application was started.
Any method in C#, first specifies the data type of the value, secondly it point out the method
name. If the method doesn’t return any information, should use the void keywords instead
of using the data types at the beginning.
Creating an Object
A new keyword must be specified while creating a object. New keyword initiates an object as
it grasps the memory to create an object. While declaring any variable for object, there is no
need for using any keyword for initiate it, but it receives a ‘null references’ error while trying
to use this object, Its because that object doesn’t exist.
In .NET, there is no need for a last line for releasing a object. As objects in .NET are released
as the application ends. In ASP.NET webpage, the application works for few seconds, till the
webpage is turn into to HTML.
Adding an Event
For notifying a code, classes can be used. In C#, firstly signature for the event must be
defined. An event can be defined based on the event keyword. Like the properties and
methods, even the events can be confirmed with accessibilities. The use of event is to allow
one object to influence other object.