摘要:
1. 确保页面上用 Register 指令注册此用户控件或自定义控件<@ Register tagPrefix=”my” tagName=”mycontrol01” src=”~/UserControls/mycontrol.ascx” >2. 或者确保 web.config 中注册了此用户控件或自定义控件<pages> <controls> <add tagPrefix="my" namespace="My.MyControls" assembly="My.MyControls" > 阅读全文
posted @ 2011-10-31 16:36
Randolph Liu
阅读(151)
评论(0)
推荐(0)
摘要:
在css中已经设置了BODY的字体大小为12PX;但当网页提交时,页面字体就会自动变大。原因:CS代码中用过Response.Write()直接输出到页面头部,一般,提示信息为了简便都会这样写,如:Response.Write("<script>alert('提交后页面字体变大!');</script>");这样就会出现提交后页面字体变大的问题。解决方法:在页面底部加一控件Literal 。输出提示信息:protected Literal info;info.Text = "<script>alert(' 阅读全文
posted @ 2011-10-31 16:29
Randolph Liu
阅读(1192)
评论(0)
推荐(0)

浙公网安备 33010602011771号