MessageTip 类概述

构造函数

public constructor MessageTip 构造函数 构造函数

公共属性

public property Height 提示框显示的高度度。
public property Interval 消息框所请求消息的时间间隔(单位:毫秒)。
public property MessageTitle 消息提示框标题。
public property Position 控制消息框显示位置。
public property RequestDataUrl 提供给消息框显示内容的 URL 地址,也就是 AJAX 请求的地址。
public property Width 提示框显示的宽度。

枚举

public enumeration MessagePosition 消息位置枚举值。

成员:

LeftTop, LeftBottom, RightTop, RightBottom

例子

    1 <%@ Page Language="C#" %>

    2 

    3 <%@ Register Assembly="MengxianHui.WebControls" Namespace="MengxianHui.WebUtil.WebControls"

    4   TagPrefix="mxh" %>

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

    6 <html xmlns="http://www.w3.org/1999/xhtml">

    7 <head runat="server">

    8   <title></title>

    9 </head>

   10 <body>

   11   <form id="form1" runat="server">

   12   <mxh:MessageTip ID="MessageTip1" runat="server" RequestDataUrl="GetData.aspx" Position="RightTop" />

   13   </form>

   14 </body>

   15 </html>