本文整理汇总了C#中System.Web.UI.UpdatePanel.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# UpdatePanel.GetType方法的具体用法?C# UpdatePanel.GetType怎么用?C# UpdatePanel.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.UI.UpdatePanel
的用法示例。
在下文中一共展示了UpdatePanel.GetType方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddSPNotification
public static void AddSPNotification(UpdatePanel updSettings, string text, bool isRefresh)
{
if (String.IsNullOrEmpty(text) == false)
{
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.AppendLine(string.Format("SP.UI.Notify.addNotification(\"{0}\");", text));
if (isRefresh == true)
{
stringBuilder.AppendLine("SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK, 1);");
stringBuilder.AppendLine("window.frameElement.commitPopup();");
}
ScriptManager.RegisterClientScriptBlock(updSettings, updSettings.GetType(), Guid.NewGuid().ToString(), stringBuilder.ToString(), true);
}
}
示例2: AjaxWarning
/// <summary>
/// 区域警告(AJAX|带信息提示)
/// </summary>
/// <param name="page"></param>
/// <param name="content"></param>
public static void AjaxWarning(UpdatePanel UP, string id, string msg)
{
ScriptManager.RegisterStartupScript(UP, UP.GetType(), "Warning" + id, "Warning('" + id + "','" + msg + "');", true);
}
示例3: AjaxShowMsg
/// <summary>
/// 显示提示信息(AJAX)
/// </summary>
/// <param name="page"></param>
/// <param name="content"></param>
public static void AjaxShowMsg(UpdatePanel UP, string content, int type)
{
i++;
ScriptManager.RegisterStartupScript(UP, UP.GetType(), "ShowMsg" + i, "ShowMsg2('" + content + "',1);", true);
}
示例4: AjaxRegisterScript
/// <summary>
/// 注册脚本(AJAX)
/// </summary>
/// <param name="page"></param>
public static void AjaxRegisterScript(UpdatePanel UP, string script)
{
i++;
ScriptManager.RegisterStartupScript(UP, UP.GetType(), "js" + i, script, true);
}
示例5: CreateClientScript
protected void CreateClientScript(String sJavaScriptFunction, UpdatePanel oUpdatePanel)
{
Guid gMessage = Guid.NewGuid();
ScriptManager.RegisterStartupScript(oUpdatePanel, oUpdatePanel.GetType(), gMessage.ToString(), sJavaScriptFunction, true);
}
示例6: Show
public static void Show(UpdatePanel objUpdatePanel, string Mensaje)
{
string alert = String.Format("alert('{0}');", Mensaje);
Guid guidKey = Guid.NewGuid();
ScriptManager.RegisterStartupScript(objUpdatePanel, objUpdatePanel.GetType(), guidKey.ToString(), alert, true);
}
示例7: RegistraJavascript
/// <summary>Método que registra um javascript</summary>
public static void RegistraJavascript(UpdatePanel updPanel, string javascript)
{
string msgScript = javascript;
ScriptManager.RegisterStartupScript(updPanel, updPanel.GetType(), msgScript, msgScript, true);
}
示例8: ShowUpdatePanelAlert
protected void ShowUpdatePanelAlert(UpdatePanel updatePanel,string message)
{
ScriptManager.RegisterStartupScript(
updatePanel,
updatePanel.GetType(),
Guid.NewGuid().ToString(),
" alert('"+ message + "');",
true);
}