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