本文整理匯總了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);
}