WebForm Control (ii)

Source: Internet
Author: User

Control

Calendar: calendaring control but HTML code is too big to fit

fileupdate: File Upload

HiddenField: Hidden fields

image: images can be written directly to URLs that are not available for HTML code

table: Table Not applicable

Verify that the class login class comes with controls that do not use

"Repeater":

HeaderTemplate -execute again at load start

ItemTemplate -how Many data are executed and how many times

FooterTemplate -executed at the end of the load

alternatingitemtemplate -alternating Item Template

<% #Eval ("fields required")%> : Dynamic Web pages provide symbols for dynamic Data

<%@ Page language="C #"autoeventwireup="true"codefile="Lianxi.aspx.cs"inherits="Lianxi"%><! DOCTYPE html>"http://www.w3.org/1999/xhtml">"Server"><meta http-equiv="Content-type"Content="text/html; Charset=utf-8"/> <title></title>"Form1"runat="Server"> <asp:repeater id="Repeater1"runat="Server"> <HeaderTemplate> <table style="Background-color:navy;text-align:center"> <tr style="color:white;padding:10px;"> <td>UserName</td> <td>PsssWord</td> <td>NickName</td> <td>Sex</td> <td&gt ; birthday</td> <td>Nation</td> </tr> "Background-color:yellow"> <td><% #Eval ("UserName")%></td> <td><% #Eval ("PassWord")%></td> <td><% #Eval ("Nickname")%></td> <td><% #Eval ("Sex")%></td> <td><% #Eval ("Birthday")%></td> <td><% #Eval ("Nation")%></td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </form>< /body>

Light Bar Effect:

<script type="Text/javascript">window.onload=function () {varItems = Document.getelementsbyclassname ("Tr_item"); varOldcolor ="";  for(vari =0; I < items.length; i++) {items[i].onmouseover=function () {oldcolor= this. style.backgroundcolor;  this. Style.backgroundcolor ="Yellow";                 }; Items[i].onmouseout=function () { this. Style.backgroundcolor =oldcolor;             };     }         }; </script>

WebForm Control (ii)

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.