asp.net中解决页面刷新后字体等变大的问题
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["login"] != null)
{
this.Button1.Attributes.Add("onclick", "if(!confirm('确实要订购吗?')) return false;");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script>alert('当前购物车中,没有商品');</script>");
return;
}
把上面的改为:
protected void Button1_Click(object sender, EventArgs e)
{
//Page.RegisterStartupScript("ServiceManHistoryButtonClick", "<script>alert('当前购物车中,没有商品');</script>");
//或下面都可,上面第一个参数随便起,不要重复.
Response.Write("<script>alert('当前购物车中,没有商品');</script>");
Response.Write(" <script>document.location=document.location; </script>");
相关文档:
using (con)
{
con.Open();
String sqltext = "select * from emp where empno=@empno";
......
介绍:
在我解释cache管理机制时,首先让我阐明下一个观念:IE下面的数据管理。每个人都会用不同的方法去解决如何在IE在管理数据。有的会提到用状态管理,有的提到的cache管理,这里我比较喜欢cache管理,因为本人比较喜“cache”这个词。但是状态管理和cache管理这两个在概念和意义上是不同的,下面就让我 ......
作者:敖士伟
在Fedora 12上的安装过程
一、mono安装
yum install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libgdiplus Cairo
wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.6.1.tar.bz2
tar jxvf mono-2.6.1.tar.bz2
cd mono-2.6.1
./configure --prefix=/usr
make
make install
安装 ......
using System.Text.RegularExpressions; //引入的命名空间
以下为引用的内容:
//清除HTML函数
public static string NoHTML(string Htmlstring)
{
//删除脚本
Htmlstr ......
其实所谓的伪静态页面,就是指的URL重写,在ASP.NET中实现非常简单
首先你要在你的项目里引用两个DLL:
ActionlessForm.dll
UR ......