#region mvc弹框
#region MVC弹窗 public static string showMsg(string strMsg, string strUrl)
/// <summary>
/// MVC弹窗
/// </summary>
/// <param name="strMsg">消息</param>
/// <param name="strUrl">跳转的地址</param>
/// <returns>返回结果的字符串</returns>
public static string ShowMsg(string strMsg, string strUrl)
{
string str = "";
str = "<script>alert('" + strMsg + "');window.location='" + strUrl + "'</script>";
return str;
}
#endregion
#region MVC弹框,(一般用于请求失败) public static String ShowMsg(string strMsg)
/// <summary>
/// MVC弹框,(一般用于请求失败)
/// </summary>
/// <param name="strMsg">消息</param>
/// <returns>返回结果的字符串</returns>
public static String ShowMsg(string strMsg)
{
string str = "";
str = "<script>alert('" + strMsg + "');history.go(-1)</script>";
return str;
}
#endregion
#region Mvc弹框(其实不用弹框主要用于跳转) public static string ShowMsg(string strUrl, bool b)
/// <summary>
/// Mvc弹框(其实不用弹框主要用于跳转)
/// </summary>
/// <param name="strUrl">url</param>
/// <param name="b">bool值</param>
/// <returns>返回结果的字符串</returns>
public static string ShowMsg(string strUrl, bool b)
{
string str = "";
str = "<script>;window.location='" + strUrl + "'</script>";
return str;
}
#endregion
#endregion
#region MVC弹窗 public static string showMsg(string strMsg, string strUrl)
/// <summary>
/// MVC弹窗
/// </summary>
/// <param name="strMsg">消息</param>
/// <param name="strUrl">跳转的地址</param>
/// <returns>返回结果的字符串</returns>
public static string ShowMsg(string strMsg, string strUrl)
{
string str = "";
str = "<script>alert('" + strMsg + "');window.location='" + strUrl + "'</script>";
return str;
}
#endregion
#region MVC弹框,(一般用于请求失败) public static String ShowMsg(string strMsg)
/// <summary>
/// MVC弹框,(一般用于请求失败)
/// </summary>
/// <param name="strMsg">消息</param>
/// <returns>返回结果的字符串</returns>
public static String ShowMsg(string strMsg)
{
string str = "";
str = "<script>alert('" + strMsg + "');history.go(-1)</script>";
return str;
}
#endregion
#region Mvc弹框(其实不用弹框主要用于跳转) public static string ShowMsg(string strUrl, bool b)
/// <summary>
/// Mvc弹框(其实不用弹框主要用于跳转)
/// </summary>
/// <param name="strUrl">url</param>
/// <param name="b">bool值</param>
/// <returns>返回结果的字符串</returns>
public static string ShowMsg(string strUrl, bool b)
{
string str = "";
str = "<script>;window.location='" + strUrl + "'</script>";
return str;
}
#endregion
#endregion