⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultcs.aspx

📁 Telerik是很大的第三方软件制造商
💻 ASPX
字号:
<%@ Page Language="c#" AutoEventWireup="false" Codebehind="DefaultCS.aspx.cs" Inherits="Telerik.GridExamplesCSharp.AJAX.ThirdParty.DefaultCS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" Assembly="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" TagName="Header" Src="~/Common/Header.ascx" %>
<%@ Register TagPrefix="telerik" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
<%@ Register TagPrefix="telerik" TagName="Footer" Src="~/Common/Footer.ascx" %>
<%@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
		<telerik:headtag runat="server" id="Headtag2"></telerik:headtag>
		<!-- custom head section -->
		<link href="../../Styles/ColorSchemes/WinXP/Styles.css" rel="stylesheet" type="text/css" />
		<!-- end of custom head section -->
	</head>
	<body class="BODY">
		<form runat="server" id="mainForm" method="post" style="WIDTH:100%">
			<telerik:header runat="server" id="Header1" navigationlanguage="CS"></telerik:header>
			<!-- content start -->
			<div style="margin-right:10px;">
			<radg:radgrid id="RadGrid1" Width="100%" cssclass="RadGrid" AutoGenerateColumns="False" EnableAJAX="true" allowsorting="True"
				pagesize="20" GridLines="None" allowpaging="True" runat="server" >
				<headerstyle cssclass="GridHeader"/>
				<pagerstyle mode="NumericPages" cssclass="GridPager" Height="18px"/>
				<itemstyle cssclass="GridRow" Height="20px" HorizontalAlign="Center"/>
				<alternatingitemstyle cssclass="GridRow" Height="20px"/>
				<mastertableview style="border-collapse:separate;" editmode="InPlace" cssclass="MasterTable" />
				<Columns>
				 <radG:GridTemplateColumn HeaderText="GridTemplateColumn">
				  <ItemTemplate>
				  <br/>
				   <fieldset style="width:80%;">
				   <legend>Button, LinkButton and ImageButton</legend>
							<asp:Button ID="Button1" Text="Button" runat="server" style="vertical-align:bottom;"></asp:Button>&nbsp;
							<asp:LinkButton ID="LinkButton1" Text="LinkButton" runat="server" style="vertical-align:bottom;"></asp:LinkButton>&nbsp;
							<asp:ImageButton ID="ImageButton1" BorderWidth="0px" ImageUrl="~/Img/telerikLogo.gif" AlternateText="ImageButton" runat="server" style="vertical-align:bottom;"></asp:ImageButton>
							<br/><br/>
				   </fieldset>
				   <br/><br/>
				<fieldset style="width:80%;">
				   <legend>CheckBox and CheckBoxList</legend>
				    <table>
					<tr>
						<td>
						  <asp:CheckBox ID="CheckBox1" AutoPostBack="True" Text="CheckBox1" runat="server"></asp:CheckBox>
						</td>
						<td>
							<asp:CheckBoxList ID="CheckBoxList1" AutoPostBack="True" runat="server">
								<asp:ListItem Value="ListItem1"></asp:ListItem>
								<asp:ListItem Value="ListItem2"></asp:ListItem>
							</asp:CheckBoxList>
						</td>
					 </tr>
					</table>
				   </fieldset>
				     <br/><br/>
				<fieldset style="width:80%;">
				   <legend>DropDownList, ListBox and TextBox</legend>
							<br/><br/>
							<asp:DropDownList ID="DropDownList1" style="vertical-align:top;" AutoPostBack="True" DataSource='<%# new string[]{"Item1","Item2", "Item3"} %>' runat="server"></asp:DropDownList>
							<asp:ListBox style="vertical-align:top;" ID="ListBox1" DataSource='<%# new string[]{"Item1","Item2", "Item3"} %>' AutoPostBack="True" runat="server"></asp:ListBox>
							<asp:TextBox style="vertical-align:top;" ID="TextBox1" AutoPostBack="True" runat="server"></asp:TextBox>
							<br/><br/>
				   </fieldset><br/><br/>
				   				   </ItemTemplate>
				</radG:GridTemplateColumn>
				  
				<radG:GridTemplateColumn HeaderText="GridTemplateColumn">
				  <ItemTemplate><br/>
				  <fieldset style="width:80%;">
				   <legend>RadioButton and RadioButtonList</legend>
				    <table>
					<tr>
						<td>
							<asp:RadioButton ID="RadioButton1" AutoPostBack="True" Text="RadioButton1" runat="server"></asp:RadioButton>
						</td>
						<td>
							<asp:RadioButtonList ID="RadioButtonList1" AutoPostBack="True" runat="server">
								<asp:ListItem Value="ListItem1"></asp:ListItem>
								<asp:ListItem Value="ListItem2"></asp:ListItem>
							</asp:RadioButtonList>
						</td>
					 </tr>
					</table>
				</fieldset>
				   <br/><br/>
				<fieldset style="width:80%;">
				   <legend>DataGrid and Calendar</legend>
				   <br/>
				    <table width="100%">
					<tr>
						<td style="width:30%">
							<asp:DataGrid ID="DataGrid1" DataSource='<%# new string[]{"Item1","Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "Item8"} %>' AllowSorting="True" runat="server"></asp:DataGrid>
						</td>
						<td>
							<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
						</td>
					 </tr>
					</table>
					<br/>
					</fieldset>
				   <br/>
				  </ItemTemplate>
				 </radG:GridTemplateColumn>
				</Columns>
			</radg:radgrid>
			</div><br />
			<asp:Button ID="Button2" Text="Try PostBack!" Width="120px" CssClass="button" Runat="server"></asp:Button>
			<br />
			<!-- content end -->
			<telerik:footer runat="server" id="Footer1"></telerik:footer>
		</form>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -