Asp. NET introduction, IIS servers, and repeater duplicates

Source: Internet
Author: User

Brief introduction:
ASP. NET-technology for making website applications
WebForm-Out time earlier, agile, convenient development, packaging some controls, slowly found some controls do very well, really use not so agile
MVC-time to come out late

What is it?
WinForm interface-Backstage-the database is combined together with the program;
ASP. NET interface (HTML+CSS+JS)-background-database

operating mechanism :
WinForm-The program is installed on the user's computer, and the program is running on the user's computer on the. NET Framework Framework

ASP.-Send a request to the server through a browser, I want to see one of your interface, the server to you to make the interface, just return a HTML+CSS+JS code to your browser, your browser will compile the code to show you.

Server:
Iis-internet Information Service Manager

The user sends requests through the browser to the server, and the server receives the request, responding to the request, the. NET Framework processing data for the database

Guests to the restaurant to eat, to the waiter to a plate of potato silk-like waiter said "good"--kitchen and warehouse with potatoes

Publish: Only the computer with IIS server installed can be used as a server publishing site, if you want to publish to the public network, there must be a fixed IP address, but generally through the domain name to access a server's website;

<% (C # code only)%>-the text in this is not the normal direct output to the client text, but need the server to explain

of the partial section

Epeater-a repeating device for displaying and parsing data in a generic collection
Response--An object of the response in the built-in object
Redirect-redirect
Datasouce-Data source
DataBind-Methods

Five main templates:
1, HeaderTemplate-header template, will be loaded at the beginning of the execution once
2, FooterTemplate-foot template, load will be executed at the last time
3, ItemTemplate-item template, how many times the data source data will be repeated
4, AlternatingItemTemplate-alternating item template, alternating with the item template until the data in the data source has been repeatedly completed

Background binding Data :
1, need to find out the data
list<users> list = new Usersdata (). SelectAll ();

2. Binding display
Repeater1.datasource = list; Data point, not yet bound
Repeater1.databind (); True binding Data

Field extension:

To format the display of data:
Ps:
<asp:repeater id= "Repeater1" runat= "Server" >
<HeaderTemplate>
<table>
<tr>
<td></td>
<td></td>
</tr>
</HeaderTemplate>
<AlternatingItemTemplate>
<tr>
<td><% #Eval ("field name")%></td>
<td><% #Eval ("field name")%></td>
</tr>
</AlternatingItemTemplate>
<ItemTemplate>
<tr>
<td><% #Eval ("field name")%></td>
<td><% #Eval ("field name")%></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>

The page calls the background function:
Property value call-ps:
Style sheet invocation-ps:style= "<%# showred ()%><%# showbold ()%>"

Asp. NET introduction, IIS servers, and repeater duplicates

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.