ASP.NET中的几种弹出框提示基本实现方法(asp.net core 跨平台)快来看

随心笔谈12个月前发布 admin
96 0

using System;

using System.Web;

namespace ShowMessage

{

///

/// Msg 的摘要说明。

///

public class ShowMessage

{

public ShowMessage()

{

//

// TODO: 在此处添加构造函数逻辑

//

}

public static void ShowMessage(string strMsg)

{

System.Web.HttpContext.Current.Response.Write(““);

}

public static void ShowMessage(System.Web.UI.Page page, string strMsg)

{

page.Response.Write(““);

}

public static void ShowMessage( string strMsg, string Url)

{

System.Web.HttpContext.Current.Response.Write(““);

}

public static void ShowMessage( System.Web.UI.Page page,string strMsg, string Url)

{

page.Response.Write(““);

}

public static void ShowConfirm(string strMsg, string strUrl_Yes, string strUrl_No)

{

System.Web.HttpContext.Current.Response.Write(“

“‘ } else {window.location.href=’https://www.jb51.net/article/”+ strUrl_No +”‘ };”);

}

}

}

© 版权声明

相关文章