Web服务器控件表

Web服务器控件表

Web服务器控件表

Web服务器控件表

Web服务器控件表

Web服务器控件表

 

部分示例前台代码:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebFormTest.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        DropDownList:<asp:DropDownList ID="ddlTest"  EnableViewState="false" runat="server">
        </asp:DropDownList>
        <br />
        ListBox:<asp:ListBox ID="lbx" runat="server" EnableViewState="false"></asp:ListBox>
        <br />
        CheckBox:<asp:CheckBox ID="cbx" runat="server" OnCheckedChanged="cbx_CheckedChanged"
            EnableViewState="false" AutoPostBack="true" />
        <br />
        CheckBoxList:<asp:CheckBoxList ID="cbl" runat="server" EnableViewState="false">
        </asp:CheckBoxList>
        <br />
        RadioButton:<asp:RadioButton ID="rdoYes" GroupName="choose" runat="server" />
        <asp:RadioButton ID="rdoNo" GroupName="choose" runat="server" />
        <br />
        Table:<asp:Table ID="tb" runat="server">
        </asp:Table>
        <br />
        <asp:Calendar ID="cal" runat="server" onselectionchanged="cal_SelectionChanged"></asp:Calendar>
        <br />
        <asp:FileUpload ID="file" runat="server"  />
        <asp:Button ID="btnUpload" runat="server"
            Text="上传" onclick="btnUpload_Click" />
    </div>
    
    </form>
</body>
</html>
View Code

相关文章: