Saturday, May 19, 2007

What is ASP.Net

ASP.NET is a web application framework marketed by Microsoft. Programmers can use it to build dynamic web sites, web applications and XML web services. It is part of Microsoft's .NET platform and is the successor to Microsoft's Active Server Pages (ASP) technology.

ASP.NET is built on the Common Language Runtime, meaning programmers can write ASP.NET code using any Microsoft .NET language.

ASPX file format
ASPX is a text file format used to create Webform pages; in programming jargon, the ASPX file typically contains static HTML or XHTML markup, as well as markup defining Web Controls and Web User Controls where the developer places all the required static and dynamic content for the web page. Additionally, dynamic code which runs on the server can be placed in a page within a block which is similar to other web development technologies such as PHP, JSP, and ASP, but this practice is generally discouraged except for Databinding.

The recommended method for dealing with dynamic program code is to use the code-behind model, which places this code in a separate file or in a specially designated script tag. Code-behind files are typically named something to the effect of MyPage.aspx.cs or MyPage.aspx.vb based on the ASPX file name (this practice is automatic in Microsoft Visual Studio and other IDEs). When using this style of programming, the developer writes code to respond to different events, like the page being loaded, or a control being clicked, rather than a procedural walk through the document

Other file extensions associated with different versions of ASP.NET include:
asax - Global.asax, used for application-level logic and event handling
ascx - Web UserControls: custom controls to be placed onto web pages.
ashx - custom Http handlers
asmx - web service pages.
axd - when enabled in web.config requesting trace.axd outputs application-level tracing. Also used for the special webresource axd handler which allows control/component developers to package a component/control complete with images, script, css etc. for deployment in a single file (an 'assembly')
browser - browser capabilities files stored in XML format; introduced in version 3.0. ASP.NET 2 includes many of these by default, to support common web browsers. These specify which browsers have which capabilities, so that ASP.NET 2 can automatically customize and optimize its output accordingly. Special .browser files are available for free download to handle, for instance, the W3C Validator, so that it properly shows standards-compliant pages as being standards-compliant. Replaces the harder-to-use BrowserCaps section that was in machine.config and could be overridden in web.config in ASP.NET 1.x.
config - web.config is the only file in a specific Web application to use this extension by default (machine.config similarly affects the entire Web server and all applications on it), however ASP.NET provides facilities to create and consume other config files. These are stored in XML format, so as to allow configuration changes to be made with simplicity.
cs/vb - In ASP.NET 2 any cs/vb files placed inside the App_Code folder are dynamically compiled and available to the whole application.
master -Master Pages; introduced in version 2.0
sitemap - sitemap configuration files
skin - theme skin files.
resx - resource files for internationalization and localization. Resource files can be global (for e.g. messages) or "local" which means specific for a single aspx or ascx file


ASP.NET compared to ASP classic
ASP.NET attempts to simplify developers' transition from Windows application development to web development by offering the ability to build pages composed of controls similar to a Windows user interface. A web control, such as a button or label, functions in very much the same way as its Windows counterpart: code can assign its properties and respond to its events. Controls know how to render themselves: whereas Windows controls draw themselves to the screen, web controls produce segments of HTML and JavaScript which form part of the resulting page sent to the end-user's browser.

ASP.NET encourages the programmer to develop applications using an event-driven GUI paradigm (event-driven GUI model), rather than in conventional web-scripting environments like ASP and PHP. The framework attempts to combine existing technologies such as JavaScript with internal components like "ViewState" to bring persistent (inter-request) state to the inherently stateless web environment.

Other differences compared to ASP classic are:
- Compiled code means applications run faster with more design-time errors trapped at the development stage.
- Significantly improved run-time error handling, making use of exception handling using try-catch blocks.
- Similar metaphors to Windows applications such as controls and events, which make development of rich user interfaces, previously only found on the desktop, possible.
- An extensive set of controls and class libraries allows the rapid building of applications, plus user-defined controls allow commonly used templates, such as menus. Layout of these controls on a page is easier because most of it can be done visually in most editors.
- ASP.NET leverages the multi-language capabilities of the .NET CLR, allowing web pages to be coded in VB.NET, C#, J#, etc.
- Ability to cache the whole page or just parts of it to improve performance.
Ability to use the code-behind development model to separate business logic from presentation.
- If an ASP.NET application leaks memory, the ASP.NET runtime unloads the AppDomain hosting the erring application and reloads the application in a new AppDomain.
- Session state in ASP.NET can be saved in a SQL Server database or in a separate process running on the same machine as the web server or on a different machine. That way session values are not lost when the web server is reset or the ASP.NET worker process is recycled.
- Previous versions of ASP.NET (1.0 and 1.1) were criticized for their lack of standards compliance. The generated HTML and JavaScript sent to the client browser would not always validate against W3C/ECMA standards. In addition, the framework's browser detection feature sometimes incorrectly identified web browsers other than Microsoft's own Internet Explorer as "downlevel" and returned HTML/JavaScript to these clients that was crippled or broken. However, in version 2.0, all controls generate valid HTML 4.0, XHTML 1.0 (the default) or XHTML 1.1 output, depending on the site configuration. Detection of standards-compliant web browsers is more robust and support for Cascading Style Sheets is more extensive.

* Web Server Controls: These are the most powerful controls introduced by ASP.net for providing the UI for the web form. These controls are state managed controls and are WYSWYG (What You See What You Get) controls

42 comments:

神待ち said...

神待ち少女を助けられるのは貴方しかいません。是非近所でウロウロしている少女を助けてあげてください。

オークション said...

「オークションちゃんねる」は最新家電から高級ブランド、話題のゲーム機まで人気商品が最大99%オフで落札できる欧米で大人気のオークションサイトです!激安アイテムやまさかのレアアイテムなど掘り出し物を探してみてください!

Anonymous said...

cheapest ambien ambien side effects pregnancy - 3 ambien cr

Anonymous said...

valium anxiety what is the generic of valium - how to buy valium in the uk

Anonymous said...

buy xanax online buying xanax online reviews - how many xanax pills

Anonymous said...

buy xanax online cheap generic xanax 3 mg - xanax 2mg sale

Anonymous said...

ambien zolpidem ambien cr side effects webmd - zolpidem tartrate medication

Anonymous said...

buy ativan ativan zoloft together - lorazepam 1mg para que serve

Anonymous said...

xanax 0.5mg xanax side effects children - xanax drug test prescription

Anonymous said...

lorazepam no prescription ativan withdrawal elderly - does generic ativan work

Anonymous said...

ativan online buy lorazepam online no prescription - ativan online

Anonymous said...

xanax no prescription online what does xanax 2 mg look like - xanax bars in system

Anonymous said...

buy cheap ativan ativan withdrawal .5 - lorazepam online prescription

Anonymous said...

ambien zolpidem cheapest place buy ambien cr - will ambien show up random drug test

Anonymous said...

soma muscle buy hgh somatropin injection - buy soma without rx

Anonymous said...

valium generic buy valium dubai - valium 10mg d-10 (generic)

Anonymous said...

ambien ambien online canada no prescription - buspar drug interactions ambien

Anonymous said...

buy valium online without prescription legal buy valium online usa - get prescribed valium online

Anonymous said...

soma buy soma online cod - soma online us

Anonymous said...

buy ambien no prescription ambien medication sleep - ambien online no prescription

Anonymous said...

carisoprodol kind drug soma - order soma watson

Anonymous said...

ambien order ambien cr typical dosage - buy real ambien

Anonymous said...

buy diazepam valium 5mg teva - valium ingredients

Anonymous said...

discount valium how to get the best high from valium - valium yellow pill

Anonymous said...

Blogger: Programming Schools - Post a Comment carisoprodol online no prescription - carisoprodol 350 mg http://www.emprendiendoideas.com/#carisoprodol-350-mg

Anonymous said...

Blogger: Programming Schools - Post a Comment reductil for sale - buy reductil online no prescription http://www.meridiaordernow.com/#buy-reductil-online-no-prescription

Anonymous said...

Blogger: Programming Schools - Post a Comment generic sibutramine - cheap sibutramine http://www.meridiaordernow.com/#cheap-sibutramine

Anonymous said...

Blogger: Programming Schools - Post a Comment buy generic acomplia - generic acomplia rimonabant http://www.a6soft.com/#generic-acomplia-rimonabant

Anonymous said...

Blogger: Programming Schools - Post a Comment buy acomplia - acomplia online http://www.a6soft.com/#acomplia-online

Anonymous said...

Blogger: Programming Schools - Post a Comment ativan online pharmacy - order ativan online no prescription http://www.ativanonlineoffer.com/#order-ativan-online-no-prescription

Anonymous said...

Blogger: Programming Schools - Post a Comment buy soma online - soma online http://www.emprendiendoideas.com/#soma-online

Anonymous said...

Blogger: Programming Schools - Post a Comment purchase prednisone - prednisone asthma http://www.ourdailybreadmarket.net/#prednisone-asthma

Anonymous said...

Hello, generic effexor price - generic effexor online http://www.effexorcostonline.com/#generic-effexor-online

Anonymous said...

Hello, generic propecia online no prescription - buy propecia online without prescription http://www.bigdocpoker.com/#finasteride-online-pharmacy

Anonymous said...

Types Of Drug Packets order acomplia online - acomplia no prescription http://www.buydiscountedisotretinoin.net/#acomplia-no-prescription

Anonymous said...

Hair Drug Results generic acomplia rimonabant - cheap acomplia diet pills http://www.buydiscountedisotretinoin.net/#cheap-acomplia-diet-pills

Anonymous said...

Hello, accutane sale - cheap accutane no prescription http://www.josoclasolucio.com/#generic-isotretinoin

Anonymous said...

Tripholium Drug Medical topamax without prescription - topiramate without prescription http://www.topamaxdiscount.com/

Anonymous said...

rvb price of zithromax - azithromycin online pharmacy http://www.zithromaxordercheap.net/#azithromycin-online-pharmacy , zithromax no prescription

Anonymous said...

losneyfgd generic viagra online - generic viagra sildenafil http://www.viagraonlineoffers.com/#generic-viagra-sildenafil , low cost viagra

Anonymous said...

ooo!!! Topamax Online - purchase topamax online http://www.cheaptopamaxorder.net/#topamax-for-sale, Buy Topiramate

Unknown said...

Nice Blog....
If you want to learn Programming Visit.
Programming Schools