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

📄 thumbnailcreator.ascx

📁 Telerik是很大的第三方软件制造商
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ThumbnailCreator.ascx.cs" Inherits="Telerik.WebControls.EditorControls.ThumbnailCreator" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<fieldset>
	<legend>
		<script>localization.showText('CreateThumbnail');</script>
	</legend>
	<table border="0" cellpadding="0" cellspacing="0">
		<tr id="<%=this.ClientID%>_htrMessage">
			<td class="ErrorMessage" colspan="2" id="<%=this.ClientID%>_htcMessage"></td>
		</tr>
		<tr>
			<td class="Label">
				<script language="javascript">localization.showText('NewImageName');</script>:
			</td>
			<td>
				<asp:TextBox id="txtNewImageName" runat="server" CssClass="text"/>
				<input type="hidden" id="hdOriginalImageLocation" runat="server" NAME="hdOriginalImageLocation"/>
			</td>
		</tr>
		<tr>
			<td class="Label">
				<script language="javascript">localization.showText('Width');</script>
			</td>
			<td>
				<asp:TextBox id="txtWidth" runat="server" CssClass="text"/>
			</td>
		</tr>
		<tr>
			<td class="Label">
				<script language="javascript">localization.showText('Height');</script>
			</td>
			<td>
				<asp:TextBox id="txtHeight" runat="server" CssClass="text"/>
			</td>
		</tr>
		<tr>
			<td class="Label">
				<script language="javascript">localization.showText('DimentionUnit');</script>
			</td>
			<td>
				<asp:DropDownList ID="ddlDimentionUnit" Runat="server" CssClass="DropDown">
					<asp:ListItem Value="pixel"></asp:ListItem>
					<asp:ListItem Value="percent"></asp:ListItem>
				</asp:DropDownList>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<asp:CheckBox id="cbConstrainProportions" runat="server" text="<script language='javascript'>localization.showText('ConstrainProportions');</script>" checked="True"/>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<asp:CheckBox id="cbOverwriteExisting" runat="server" text="<script language='javascript'>localization.showText('OverwriteExisting');</script>"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<button class="Button" id="btnCreate" runat="server" type="button"><script language='javascript'>localization.showText('Create');</script></button>
			</td>
		</tr>
	</table>
</fieldset>
<script language="javascript">
	var <%=this.ClientID%> = new ThumbnailCreator(
		'<%=this.ClientID%>',
		document.getElementById("<%=this.txtWidth.ClientID%>"),
		document.getElementById("<%=this.txtHeight.ClientID%>"),
		document.getElementById("<%=this.txtNewImageName.ClientID%>"),
		document.getElementById("<%=this.hdOriginalImageLocation.ClientID%>"),
		document.getElementById("<%=this.cbConstrainProportions.ClientID%>"),
		document.getElementById("<%=this.ddlDimentionUnit.ClientID%>"),
		document.getElementById("<%=this.btnCreate.ClientID%>"),
		document.getElementById("<%=this.cbOverwriteExisting.ClientID%>")
		);
</script>

⌨️ 快捷键说明

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