上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
setstatisticsprofileonsetstatisticsioonsetstatisticstimeongo --sql语句gosetstatisticsprofileoffsetstatisticsiooffsetstatisticstimeoff Read More
posted @ 2012-11-02 11:58 Merray Views(303) Comments(0) Diggs(0) Edit
多级目录索引的制作插入“项目符号与编号”,可以设置项目符号与编号的格式 后面对应的文字样式应用为“标题”这样在以后可以自动生成目录。 如果标题格式不喜欢 可以先修改标题的格式 然后再应用。操作 如何自动生成多级编号,插入多级编号时 换行时 直接回车 会直接生成同级编号,如果回车后按“TAB”键如果选择的是多级目录 则会自动生成下一级编号。 Read More
posted @ 2012-11-01 13:39 Merray Views(559) Comments(0) Diggs(0) Edit
WINFROM 只能运行一个实例 目前网上比较多的又2种方法第一种:Mutex /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { //声明互斥体。 Mutex mutex = new Mutex(false, "ThisShouldOnlyRunOnce "); //判断互斥体是否使用中。 bool Running = !mutex.WaitOne(0, false); Application.EnableVisualStyles(); Appli Read More
posted @ 2012-11-01 09:23 Merray Views(253) Comments(0) Diggs(0) Edit
弹出确认提示一般用到的是后台控制脚本confirm普通的为控件增加确认提示框,只需要给控件注册脚本即可,如下控件名称.Attributes.Add("onclick", "return confirm(\"确认要执行?\")");一般放在Page_Load 事件里如果是GridView 则需要放在gridView_RowDataBound中。另一种是后台执行过程中的弹出提示目前没有找后台直接获取脚本confirm返回值的方法,采用,js获取到返回值,存储到Hidden控件中,c#读取隐藏控件来确认返回结果。ClientScript.R Read More
posted @ 2012-10-17 09:49 Merray Views(2999) Comments(0) Diggs(0) Edit
使用ASP.NET ajax中的updatePanel 后js失效的问题,http://www.cnblogs.com/clingingboy/archive/2007/10/10/920038.html介绍的详细些,现在说下最简单的解决办法:既然ScriptManager没给注册那手动把脚本注册上就可以了ScriptManager.RegisterStartupScript可以实现在AJAX内注册脚本举一个弹出窗口的例子:ScriptManager.RegisterStartupScript(this,this.GetType(),"提示","alert( Read More
posted @ 2012-10-13 13:15 Merray Views(427) Comments(0) Diggs(0) Edit
解决:最简单的方法 选项中 选择覆盖现有数据库 强制还原即可。 Read More
posted @ 2012-10-09 10:37 Merray Views(1186) Comments(0) Diggs(0) Edit
一:跨库复制表表存在insert into [目标数据库].dbo.表名 from [源数据库].dbo.表名表不存在select * into [目标数据库].dbo.表名 from [源数据库].dbo.表名二、SQLSERVER 数据库一直处于正在还原中的解决办法restore database DBNAME with recovery Read More
posted @ 2012-09-20 10:53 Merray Views(145) Comments(0) Diggs(0) Edit
查看 XML文件的权限是否有NETWORK SERVICE 这个用户 没有的话需要添加,添加后仍不能访问,需要确认NETWORK SERVICE是否拥有写入权限,没有则增加写入权限即可。 Read More
posted @ 2012-09-18 15:04 Merray Views(1072) Comments(0) Diggs(0) Edit
1. Session 丢失问题 先看下 Session 的存储方式 asp.net有3种存储方式,:inproc, sqlserver,stateserver 在哪里设置呢 “web.config” 中有 <sessionState mode="Off|InProc|StateServer|SQLS Read More
posted @ 2012-09-17 17:58 Merray Views(247) Comments(0) Diggs(0) Edit
解决办法:断开与该数据库的连接ALTERDATABASE[datebase]SETOFFLINEWITHROLLBACKIMMEDIATE Read More
posted @ 2012-09-14 16:33 Merray Views(274) Comments(0) Diggs(0) Edit
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页