老罗,我记得PageHelper是老师讲课时自己编写的类
我这里有个PageHelper
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
///PageHelper 的摘要说明
/// </summary>
public static class PageHelper
{
public static void showMsg(string strMsg)
{
HttpContext.Current.Response.Write("<script>alert('"+ strMsg +"')</script>");
}
public static void showMsg(string strMsg,string strPath)
{
HttpContext.Current.Response.Write("<script>alert('"+ strMsg +"');window.location = '"+ strPath +"'</script>");
}
} |