上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 需求:在开发多人协作的项目的时候,一般要同时使用多个数据库常见的情况有:一个开发者用的数据库(开发库),一个测试者用的数据库(测试库),一个正式开放给客户的数据库(正式库),那么这三个数据库之间的数据结构的同步就将成为一个问题如:当开发者A在“开发库”中添加了一个表,开发者B修改了一个表...这些数据库结构的变更势必要同步到“测试库”和“... 阅读全文
posted @ 2010-11-21 11:45 liulun 阅读(942) 评论(0) 推荐(1)
摘要: 先看一下我的解决方案的目录结构吧~~~一:先把Controller程序提取出来默认的情况是所有的****Controller.cs文件都会放在Web程序集下的一个叫Controllers的文件夹下这样感觉有点不爽(你懂的...)我们决定把所有的Controller程序放到一个自定义的应用程序集中去(上图中的mrlh.Admin.Controllers)先把web程序集下的Global.asax.cs文件删掉然后把Global.asax的标记代码改为如下:<%@ Application Codebehind="mrlh.Admin.Controllers.App.MvcAppli 阅读全文
posted @ 2010-11-18 12:05 liulun 阅读(2554) 评论(11) 推荐(3)
摘要: ValidateInput(false)与this.ValidateRequest = false无效的解决方案鼓捣了半天终于解决了这个问题写出来叫后人少费点劲在最外层的web.config中的systerm.web节点中加入这么一句话<httpRuntime requestValidationMode="2.0"/>一切就OK了~~~ 阅读全文
posted @ 2010-11-15 21:03 liulun 阅读(2229) 评论(5) 推荐(0)
摘要: Configuration:用于配置并启动NHibernate,通过此实例来获取对象关系映射文件中的元数据可以通过此实例动态配置NHibernate的属性此实例可以创建SessionFactorySessionFactory:一个这个类型的实例对应一个数据存储源可以创建Session的实例Session:持久化管理器保存、更新、删除、加载对象Query查询对象用于控制执行查询的过程Query一般情... 阅读全文
posted @ 2010-11-10 22:55 liulun 阅读(570) 评论(0) 推荐(0)
摘要: 先看图片再上源码此效果jquery版的请看此处:http://www.cnblogs.com/liulun/archive/2010/11/07/1871145.htmljquery版的没有这个FLASH版的要好 阅读全文
posted @ 2010-11-07 21:46 liulun 阅读(1589) 评论(0) 推荐(1)
摘要: 先来个效果图(没有服务器,没办法提供演示版)效果不如FLASH版的好,接下来我就发出FLASH版的来全部代码如下所示 阅读全文
posted @ 2010-11-07 16:52 liulun 阅读(1791) 评论(1) 推荐(2)
摘要: function postData() { var post = ""; $(":text").each(function() { post += "&" + this.name + "=" + this.value; }); $(":password").each(function() { post += "&" + this.name + "=" + this.value; }... 阅读全文
posted @ 2010-10-27 09:03 liulun 阅读(628) 评论(0) 推荐(0)
摘要: //方法1 //using System.Runtime.Serialization.Json; //using System.IO; //using System.Text; //using System.Text.RegularExpressions; DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(arr.G... 阅读全文
posted @ 2010-10-26 13:32 liulun 阅读(1235) 评论(2) 推荐(1)
摘要: function SetSubTable() { var obj = jQuery.parseJSON($("#SubJsonStrValue").val()); window.ALLPARAMTERS = obj; var row_str = ""; var span_num = 1 for (var i = 0; i < obj.length; i++) { if (obj[i].Par... 阅读全文
posted @ 2010-10-22 12:50 liulun 阅读(1931) 评论(0) 推荐(1)
摘要: #include <afxwin.h>//必须加载此文件,该文件中定义了所有MFC相关的类#include "resource.h"class MyFrame:public CFrameWnd{private: CMenu MainMenu,*SysMenu,*PopMenu,*SubMenu; COLORREF color;public: MyFrame() { Create(NU... 阅读全文
posted @ 2010-07-04 20:14 liulun 阅读(760) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"#include <afxtempl.h> //定义模板类的头文件class MyDocument : public CDocument{public: CArray<CPoint,CPoint &> pArray;//<保存的数据类型,读取保存数据类型的返回值>... 阅读全文
posted @ 2010-06-29 21:12 liulun 阅读(603) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"class MyDocument : public CDocument{ DECLARE_DYNCREATE(MyDocument)//声明run-time类};IMPLEMENT_DYNCREATE(MyDocument,CDocument)//声明MyDocument为run-time类class My... 阅读全文
posted @ 2010-06-28 21:56 liulun 阅读(329) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"class MyFrame:public CFrameWnd{private: CMenu *FMenu;public: MyFrame() { Create(NULL,"Hello MFC");//建立窗口 FMenu = new CMenu;//产生菜单 FMenu->LoadMenu(ID... 阅读全文
posted @ 2010-06-28 21:32 liulun 阅读(451) 评论(5) 推荐(0)
摘要: #include <afxwin.h>//编写窗口程序时,必须加载此文件,该文件中定义了所有的MFC类class MyApp:public CWinApp//以继承的方式借用MFC的类{public:BOOL InitInstance()//程序入口点{CFrameWnd *Frame = new CFrameWnd();m_pMainWnd = Frame;//窗口框架对象Frame... 阅读全文
posted @ 2010-06-28 21:16 liulun 阅读(494) 评论(0) 推荐(0)
摘要: DEMO的下载地址:http://files.cnblogs.com/liulun/flashUploader.rar参考文章所在地址:http://blog.l4cd.net/post-old-102.htmlhttp://www.kingnare.com/auzn/archives/548本来想做SL版的断点续传,但是客户觉得SL客户端占有率太低就选择采用FLASH版的了FLASH AS3.0... 阅读全文
posted @ 2010-06-16 15:15 liulun 阅读(2566) 评论(0) 推荐(0)
摘要: 需求:用户登录后隔一段固定的时间触发某一特定事件详细描述如下web项目数据库有一个用户表当用户登录后记下当前时间从当前时间计时,一天后执行一个固定的方法(或触发某个事件)-------------------------------------------------------------------------------------------------------------------... 阅读全文
posted @ 2010-03-21 10:05 liulun 阅读(396) 评论(0) 推荐(0)
摘要: 1:这个做法不太常用2:这个方法要传递两个参数,打算用扩展方法解决这个问题,但是扩展方法又不能用在匿名类型上,有点郁闷using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication8{ class Program { static void Main(string[] args) { Func<string, string, string> getAllName = deleg... 阅读全文
posted @ 2010-03-19 09:06 liulun 阅读(499) 评论(1) 推荐(0)
摘要: 写这玩意主要是为了锻炼一下英文水平第一篇翻译的比较详细一个是看看这个书翻译容易不容易第二个是看看自己有没有这个水平接下来的翻译可能就只检重点的翻译了Asp.net mvc 实战Jeffrey PalermoBen ScheirmanJimmy BogardAsp.net mvc framework入门这一章主要包括:1asp.net mvc框架的系统要求2运行第一个项目3“HellowWorld”示例4强类型视图5路由基础在微软平台上开发web项目的时间越长你越能体会到如下的痛苦九十年代开发人员用服务器上的可执行程序创建动态网站这些程序(CGI在当时是一个非常普遍的技术)接收web请求并负责创 阅读全文
posted @ 2010-03-17 17:58 liulun 阅读(828) 评论(0) 推荐(0)
摘要: 发送数据:接收数据: 阅读全文
posted @ 2010-03-16 10:47 liulun 阅读(3330) 评论(1) 推荐(1)
摘要: 客户端代码服务端代码 阅读全文
posted @ 2010-03-15 17:33 liulun 阅读(1623) 评论(0) 推荐(0)
摘要: 服务端客户端 阅读全文
posted @ 2010-03-11 09:53 liulun 阅读(4094) 评论(0) 推荐(3)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.IO;using System.Text.RegularExpressions;namespace allen{ class Program { /// <summary> /// 根据网址取得HTML代码 /// </summary> /// <param name="url"></param> ... 阅读全文
posted @ 2010-03-06 14:31 liulun 阅读(1262) 评论(5) 推荐(2)
摘要: 新建一个项目->顺序工作流库设计面板拖放ifElse活动点右键,添加三个分支每个分支的条件设置为声明性规则条件并设置他们的名称和表达式代码如下:在解决方案中创建windows form项目设计一个简单的计算器的界面做代码如下 阅读全文
posted @ 2010-02-28 14:00 liulun 阅读(729) 评论(0) 推荐(0)
摘要: C#->控制台顺序工作流->拖放code->双击生成事件处理程序 阅读全文
posted @ 2010-02-27 23:14 liulun 阅读(1153) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text;using System.Reflection;namespace ConsoleApplication6{ /// <summary> /// AttributeTargets.Clas... 阅读全文
posted @ 2010-02-25 11:50 liulun 阅读(1741) 评论(2) 推荐(3)
摘要: #include <windows.h>#include "resource.h"#include <string>LRESULT CALLBACK MainWndProc(HWND,UINT,WPARAM,LPARAM);//窗口函数的函数原型int APIENTRY WinMain( //APIENTRY是__stdcall的宏定义 HINSTANCE hIn... 阅读全文
posted @ 2010-02-23 16:18 liulun 阅读(1484) 评论(0) 推荐(0)
摘要: resource.h的代码为 阅读全文
posted @ 2010-02-23 15:00 liulun 阅读(747) 评论(0) 推荐(0)
摘要: #include <windows.h>LRESULT CALLBACK MainWndProc(HWND,UINT,WPARAM,LPARAM);//窗口函数的函数原型int APIENTRY WinMain( //APIENTRY是__stdcall的宏定义 HINSTANCE hInstance, //本模块的实例句柄 HINSTANCE hPrevInsta... 阅读全文
posted @ 2010-02-23 13:52 liulun 阅读(581) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int? a; a = null;//此时输出3 //a = 6;//此时... 阅读全文
posted @ 2010-02-19 19:59 liulun 阅读(2103) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>#include <process.h>using namespace std;int g_nCount1 = 0;int g_nCount2 = 0;CRITICAL_SECTION g_cs;//临界区BOOL g_bContinue = TRUE;//线程结束标志UINT WIN... 阅读全文
posted @ 2010-02-09 12:44 liulun 阅读(601) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页