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

📄 templetedit.ascx

📁 如果不使用IIS,请先运行 XSP.exe,待提示已侦听 8080端口后
💻 ASCX
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TempletEdit.ascx.cs" Inherits="admin_Templet_TempletEdit" %>
<%@ Register src="../../controls/selfile.ascx" tagname="selfile" tagprefix="uc1" %>

<%@ Register src="../../htmleditor/editorl.ascx" tagname="editorl" tagprefix="uc2" %>

<%@ Register src="../../controls/fileManage.ascx" tagname="fileManage" tagprefix="uc3" %>

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    <asp:View ID="View1" runat="server">
        <table style="width: 800px">
            <tr valign="top">
                <td style=" width:100px">
                    选择模板 
                </td>
                <td align="left" >
                    
                    <uc3:fileManage ID="fileManage1" runat="server" RootPath="~/Templets/" OnSelFile="fileManage1_SelFile"  />
                    
                </td>
                <td>
                    <%--<asp:Button ID="btnSelTemplet" runat="server" Text="选择" 
                        onclick="btnSelTemplet_Click" />--%>
                </td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="View2" runat="server">
    <script type="text/javascript" >
      function OpenWindow(ans)
      {
            var id='<%= txteditor.ClientID  %>';

            thisWin = window.open('<%= ResolveUrl("~/admin/Templet/PreView.aspx") %>?ans='+ans+'&id=' + id, null, "menubar=no,resizable=yes,scrollbars=yes ");

         
          
      }
    </script>
    <table width="100%"  >
    <tr>
        <td>
            <button onclick="OpenWindow('true')">预览</button>
        </td>
        <td>
            <button onclick="OpenWindow('false')">预览(不分析标签)</button>
        </td>
        <td>
            <asp:Button ID="btnDo" runat="server" Text="分析" onclick="btnDo_Click" />
        </td>
        <td>
            <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" />
        </td>
        <td>
            <asp:DropDownList ID="ddlHistory" runat="server">
            </asp:DropDownList>
            <asp:Button ID="btnHistory" runat="server" Text="读取备份" 
                OnClientClick="return confirm('确定要读取备份?')" onclick="btnHistory_Click" />
        </td>
        <td>
            <asp:Button ID="btnCancal" runat="server" Text="取消" onclick="btnCancal_Click" />
        </td>
    </tr>
    <tr><td colspan="6">
        <asp:Label ID="lblerr" runat="server" Text="" ForeColor="Red" EnableViewState="false" >
        </asp:Label></td></tr>
    <tr style=" height:400px">
        <td align="center" colspan="6" >
            <asp:TextBox ID="txteditor" runat="server" TextMode="MultiLine" 
             Width="95%" Height="400" 
            ></asp:TextBox>
        </td>
    </tr>
</table>
    
    </asp:View>
</asp:MultiView>

⌨️ 快捷键说明

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