Webform repeater, webformrepeater

Source: Internet
Author: User

Webform repeater, webformrepeater

Repeater: composed of templates. After parsing, the template does not exist.
You must specify a data source for data binding.


List <Fruit> list = new FruitDA (). Select (); // data query (any search)
Repeater1.DataSource = list; // value assignment
Repeater1.DataBind (); // bind
Template style:
Headertemplate: Header Template

When displaying data, it is equivalent to the header

Itemtemplate

<% # Eval ("data column name") %> bind data directly based on the column name

Alternatingtemplate: Double loading of alternate item templates

And itemtemplate to achieve alternate display.
Footertemplate: Bottom Template
Style needs to be constructed by spelling hmtl format

 

The dialog box is displayed. Confirm to cancel the operation.
DialogResult result = new MessageBox. Show ("delete? "," Delete dialog box ", MessageBoxButtons. YseNo); // (display content, Dialog Box Name, system included)
If (result = DialogResult. Yes) // determines whether the user points are confirmed or canceled.

{// Enter the statement to be executed

}

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.