对于数据库文件加Authenticated Users用户,并授予完全权限。 Read More
posted @ 2015-08-09 22:36 虚空境界 Views(521) Comments(0) Diggs(0) Edit
sql表设计器的几个默认值:空字符串‘’(注意是单引号)当前时间getdate()逻辑值0或1汉字或英文字符串需在前面加大写N,并用单引号引起如: N'已发货' Read More
posted @ 2015-07-29 10:05 虚空境界 Views(402) Comments(0) Diggs(0) Edit
我在使用easyui中的tree控件时,出现不正常显示的现象,比如li中不能使用自定义的图标、父级展开或关闭时,其子级仍然显现并出现重叠等。找了很多资料,都没解决这个问题,后来逐个对照官方的源码,才找到解决方法和原因。1、li中不能使用自定义的图标,总是显示文件夹或文件这两个默认图标,是easyui... Read More
posted @ 2015-07-05 16:52 虚空境界 Views(1187) Comments(0) Diggs(0) Edit
Ajax.ActionLink使用在提交参数明确的情况下,如:Ajax.ActionLink("加入购物车", "AddToCart", "Cart", new { GoodsId = 3, Amount = 10 }, ajaxOption, new { @class = "btn" })这里的提... Read More
posted @ 2015-03-19 14:03 虚空境界 Views(300) Comments(0) Diggs(0) Edit
在MVC4中使用ajax.beginform来做添加商品到购物车中的提交操作,结果点击提交按钮后,出现两次post,这样导致商品的数量增加了一倍。原因:@Scripts.Render("~/bundles/jqueryval") 语句被引用了两遍,导致了jquery.unobtrusive-ajax... Read More
posted @ 2015-03-19 13:54 虚空境界 Views(1070) Comments(0) Diggs(1) Edit
原文:JQuery EasyUI弹出对话框解决Asp.net服务器控件无法执行后台代码的方法jquery-easyui是一个基于jquery的图形界面插件,利用easyui可以创建很多好看的网页界面效果,easyui的相关地址是:http://jquery-easyui.wikidot.com/; ... Read More
posted @ 2015-02-06 16:57 虚空境界 Views(389) Comments(0) Diggs(0) Edit
可以输入非0和0开头的数字:“^(0*[1-9][0-9]*|[1-9][0-9]*)$”只能输入数字:“^[0-9]*$”只能输入n位的数字:“^\d{n}$”只能输入至少n位数字:“^\d{n,}$”只能输入m-n位的数字:“^\d{m,n}$”只能输入零和非零开头的数字:“^(0|[1-9][0-9]*)$”只能输入有两位小数的正实数:“^[0-9]+(.[0-9]{2})?$”只能输入有1-3位小数的正实数:“^[0-9]+(.[0-9]{1,3})?$”只能输入非零的正整数:“^\+?[1-9][0-9]*$”只能输入非零的负整数:“^\-[1-9][0-9]*$”只能输入长度为3的 Read More
posted @ 2013-12-23 16:17 虚空境界 Views(617) Comments(0) Diggs(0) Edit
和以前的asp不同,在asp.net中为了彻底的代码分离,我们一般不采用嵌入标签中来设置一些属性和内容。一般来说有2种情况:(一)设置标签的内容,比如这里(二)设置标签的属性,比如(三)动态加载一些script先看一下(一)和(二):前台后台protectedHtmlGenericControlmytitle;protectedHtmlGenericControlmybody;this.mytitle.InnerText="test";this.mybody.Attributes["bgcolor"]="#cccccc";这里说明3点 Read More
posted @ 2013-11-18 23:22 虚空境界 Views(443) Comments(0) Diggs(0) Edit
在后台使用Response.Write(");弹出alert窗口后发现网页的界面和原来CSS设置的不一样了。只要使用Page.ClientScript.RegisterStartupScript(this.GetType(), "", ""); 代替Response.Write(");界面就不会变化了。 Read More
posted @ 2013-09-13 10:54 虚空境界 Views(792) Comments(0) Diggs(0) Edit
设定以下属性:Height:autoWidth:autoHorizontalAlignment:StretchVerticalAlignment:Stretch再设定Margin值 Read More
posted @ 2013-01-25 16:38 虚空境界 Views(227) Comments(0) Diggs(0) Edit