当前上下文中不存在名称“HttpContext” 百度了一下说是因为没有加入System.Web,我已经在项目里添加引用了,但还是这样,求高人指点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public class WebChat { public static void Show(string Message) { HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>alert('" + Message + "')</script>"); HttpContext.Current.Response.Write("<script>history.go(-1)</script>"); HttpContext.Current.Response.End(); } public static void Show(string Message, string Src) { HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>alert('" + Message + "');location.href='" + Src + "'</script>"); HttpContext.Current.Response.End(); }这是代码 分享自己写的字符串操作.. 求算法:求枚舉子集合的算法 组合查询问题 有关填充DataGrid,请高手解决 js里获得GridView模板列的TextBox做批量增加的问题 C# & WinForm|请教下高手,Form关闭时最小化到托盘,右击关闭怎么退出程序? 正则表达式高手求助!~~顶者有分 大家有没什么图形统计的控件啊 vs2005 c# 数据库项目不能引用第三方的dll? sendkeys.send被360屏蔽后有什么解决办法吗? 什么叫资源本地化 (网上下载了一个dll的本地化资源 不明白到底是汉化了哪部分) winform如何写监听事件,急!
{
public static void Show(string Message)
{
HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>alert('" + Message + "')</script>");
HttpContext.Current.Response.Write("<script>history.go(-1)</script>");
HttpContext.Current.Response.End();
}
public static void Show(string Message, string Src)
{
HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>alert('" + Message + "');location.href='" + Src + "'</script>");
HttpContext.Current.Response.End();
}
这是代码