zoukankan      html  css  js  c++  java
  • Infopath Notify 弹出提示信息

    在InfoPath里弹出窗口,可以用Notify(message)就可以实现,不过要修改layouts文件夹里面一个FormServer文件

    修改后的代码为

        
            
        
    <%@ Page 
        inherits="Microsoft.Office.InfoPath.Server.Controls.FormServerPage,Microsoft.Office.InfoPath.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
        EnableSessionState="true"
        AutoEventWireup="false"
        EnableViewState="false"
        LinePragmas="false"
        Language="C#"
        ValidateRequest="true"
    %>
    <%@ Register Tagprefix="InfoPath" Namespace="Microsoft.Office.InfoPath.Server.Controls" Assembly="Microsoft.Office.InfoPath.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <script runat="server">
        
        protected void XmlFormView1_NotifyHost(object sender, NotifyHostEventArgs e)
        {   
            string jsCode = String.Format("alert(\"{0}\");", e.Notification); 
            ClientScript.RegisterStartupScript(typeof(string), "AlertScript",jsCode, true);
            }
        
    
    </script>
    
    <html>
        <head runat="server">
        </head>
        <body style="margin: 0px;overflow:auto;">
            <form runat="server" id="HostingForm" method="post" enctype="multipart/form-data" style="100%;">
                    <InfoPath:XmlFormView id="FormControl" OnNotifyHost="XmlFormView1_NotifyHost" Style="100%;" runat="server"/>
            </form>
        </body>
    </html>
  • 相关阅读:
    处理安卓9patch(.9.png)图片
    block 方法参数中带有block 如何生成 如何使用
    hash_hmac
    日期(NSDate)是NSString类的格式(stringWithFormat)
    UITableView刷新单个cell或者单个Section
    iOS enum 定义与使用
    拼接url地址
    demo效果
    好东西
    关于ios7 navigationController中view的frame以及坐标点
  • 原文地址:https://www.cnblogs.com/gzh4455/p/2613239.html
Copyright © 2011-2022 走看看