• 前面PRM实例所使用到的MasterPage


    Site.master
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="Site" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        
    <title>Untitled Page</title>
    </head>
    <body style="font-size:11pt; font-family:Verdana;">
        
    <form id="form1" runat="server">
            
    <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Debug">
            
    </asp:ScriptManager>
        
    <div>
            
    <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
            
    </asp:contentplaceholder>
        
    </div>
        
        
    <br />
        
    <div id="message" style="color:Red;"></div>
        
    <script language="javascript" type="text/javascript">
            var timeoutSeed 
    = null;
            function showMessage(message, timeout)
            {
                $
    get("message").innerHTML = message;
                
    if (timeoutSeed)
                {
                    window.clearTimeout(timeoutSeed);
                }
                
                timeoutSeed 
    = window.setTimeout(
                    function(){ $
    get("message").innerHTML = ""; },
                    timeout 
    || 2500);
            }
        
    </script>
        
        
    </form>    
    </body>
    </html>

    Site.master.cs
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;

    public partial class Site : System.Web.UI.MasterPage
    {
        
    protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
  • 相关阅读:
    Java第二十五天,多线程之等待唤醒机制
    Java第二十四天,线程安全
    多线程第二十三天,多线程
    Java第二十二天,异常
    数据结构之广义表
    MS Office使用技巧
    标准C++中的String类的使用
    SQL中创建外键约束
    关系数据标准语言SQL之数据查询
    Windows命令
  • 原文地址:https://www.cnblogs.com/timy/p/1169883.html
Copyright © 2020-2023  润新知