ASP. NET Applications

Source: Internet
Author: User

Web Applications
ASP. NET Web
 
Most applications are application types created in ASP. NET Web development, that is, ASP. NET Web forms applications. The simplest ASP. NET Web application contains a directory that can be displayed in a browser using the HTTP protocol on the IIS server. It contains at least one. aspx file, namely an ASP. NET page.
 
 
 
 
Web Server
 
 
 
Web server is another application type provided by ASP. NET.
 
 
 
The basic structure of Web servers is generated according to industry standards such as SOAP, XML, and WSDL. This allows clients on other platforms to interact with Web Services.
 
 
 
 
Application Structure
 
Generally,
 
ASP. NET applications may have the following files:
 

 
Web form page (. aspx file );
 

 
Web Service (. asmx file );
 

 
Code hidden file;
 

 
Configuration file (web. config file );
 

 
Global. asax file;
 

 
User Control file (. ascx file );
 

 
Other components.
 
 
 
 
ASP. NET Web forms
 
Web
 
Form Structure Code
 
<Html xmlns ="
Http: // www ">
 
<Head runat = "server">
<Title>
 
No title page <title>
 
</Head>
<Body>

 
<Form id = "form1" runat = "server">
 

 
<Div>
 

 
<Asp: Label ID = "Label1" runat = "server" Text = "Label"> </asp: Label>
 

 
<Asp: Button ID = "Button1" runat = "server" Onclick = "button#click"
 
Text = "Button"/>
</Div>
</Form>
</Body>
</Html>
 
ASP. NET Web
 
A form page generally contains the following elements:
 
(
 
1) @ command. Commands used in ASP. NET to process pages. The most common command is the @ Page command, for example:
 
<% @ Page Language = "C #" %>
 
 
(2) server code. A block that consists of variables, member declarations, and code between <script> </script> tags.
 
(3) <form> element.
<Form id = "form1" runat = "server">
<Asp: Label ID = "Label1" runat = "server" Text = "Label"> </asp: Label>
<Asp: Button ID = "Button1" runat = "server" Onclick = "button#click" Text = "Button"/>
</Form>
(4) static text.
Name: <input type = "text" id = "txtName">
(5) Web server controls.
<Asp: TextBox id = "Mytext" runat = "server"/>
(6) HTML elements act as server controls.
<Input type = "text" id = "MyText" runat = "server">


 

From smile every day

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.