Beispiel #1
0
 /// <summary>
 /// 清除验证失败的提示信息
 /// </summary>
 public void ClearInvalid()
 {
     PageContext.RegisterStartupScript(GetClearInvalidReference());
 }
Beispiel #2
0
 /// <summary>
 /// 在顶层窗口中显示消息框
 /// </summary>
 /// <param name="message"></param>
 /// <param name="title"></param>
 /// <param name="icon"></param>
 public static void ShowInTop(string message, string title, MessageBoxIcon icon, string okScript)
 {
     PageContext.RegisterStartupScript(GetShowInTopReference(message, title, icon, okScript));
 }
Beispiel #3
0
 /// <summary>
 /// 设置字段验证失败的提示信息
 /// </summary>
 /// <param name="message">提示信息</param>
 public void MarkInvalid(string message)
 {
     PageContext.RegisterStartupScript(GetMarkInvalidReference(message));
 }
Beispiel #4
0
 /// <summary>
 /// 使控件获得焦点,并选中控件中的文本内容
 /// </summary>
 /// <param name="selectText">是否选中控件中的文本内容</param>
 /// <param name="delayMilliseconds">使控件获得焦点前延迟的毫秒数</param>
 public void Focus(bool selectText, int delayMilliseconds)
 {
     PageContext.RegisterStartupScript(GetFocusReference(selectText, delayMilliseconds));
 }
Beispiel #5
0
 /// <summary>
 /// 使控件获得焦点,并选中控件中的文本内容
 /// </summary>
 /// <param name="selectText">是否选中控件中的文本内容</param>
 public void Focus(bool selectText)
 {
     PageContext.RegisterStartupScript(GetFocusReference(selectText));
 }
Beispiel #6
0
 /// <summary>
 /// 使控件获得焦点
 /// </summary>
 public new void Focus()
 {
     PageContext.RegisterStartupScript(GetFocusReference());
 }
Beispiel #7
0
 /// <summary>
 /// 刷新面板中的IFrame页面
 /// </summary>
 public void RefreshIFrame()
 {
     PageContext.RegisterStartupScript(GetRefreshIFrameReference());
 }