<%@ page language="C#" autoeventwireup="true" inherits="ims.sms, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="sms">
<head runat="server">
    <title>发送短信</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm" runat="server" OnAsyncPostBackError="AsyncError">
        <CompositeScript Path="js/msajax.js" ScriptMode="Release">
            <Scripts>
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>    
    <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="false" UpdateMode="conditional" RenderMode="Block" class="sm">
    <ContentTemplate>
        <div runat="server" id="divMsg"></div>
        <div runat="server" id="sendBox">
            手机号码：<br /><asp:TextBox runat="server" ID="nums" ToolTip="输入要发送到的手机号码，多个号码之间用空格或逗号或换行分隔" Rows="1"></asp:TextBox><div style="height:6px;overflow:hidden"></div>
            短信内容：<br /><asp:TextBox runat="server" ID="smsBody" onpaste="setCount();" oninput="setCount();" onkeyup="setCount();" TextMode="MultiLine" Rows="8"></asp:TextBox>
            <div id="divCount">还可输入<span id="count">250</span>字</div>
        </div>
        <div id="btnArea" runat="server"><asp:Button runat="server" ID="btnSend" OnClick="SendSms" OnClientClick="return sending();" Text="发送" CssClass="btn big" /></div>
        <div runat="server" id="resultArea" class="center" visible="false">
            <div runat="server" id="resultMsg" class="msgarea bigspace mtop_n mbottom_x"></div>
            <input type="button" class="btn big" runat="server" id="btnContinue" value="继续" onserverclick="SendSms" />
            <input type="button" class="btn big" id="btnClose" value="关闭" onclick="back();" />
        </div>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnSend" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="btnContinue" EventName="serverclick" />
    </Triggers>
    </asp:UpdatePanel>
    <script src="js/comm.js"></script><script src="js/sms.js"></script>
    </form>
</body>
</html>
