上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 开发环境VS2008,新建网站网站,添加启用Ajax的wcf服务如下图打开App_Code下的CS文件,添加如下方法在浏览器中运行新增的AjaxService.svc如下图在浏览器地址栏中加上/js 继续运行得到一个js文件包存到网站中,在页面中添加 <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="~/WcfService/AjaxWcf.js" /> </S 阅读全文
posted @ 2012-05-25 10:19 ajunfly 阅读(197) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script src="jquery- 阅读全文
posted @ 2012-05-23 16:31 ajunfly 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Begin Transaction TranDocumentControl_Insert 开始事务Insert Into table valuies () //执行动作If @@Error<>0 Goto EndProc //如果执行结果@@Error错误记录不等于0,则表示动作执行出错,那么接着执行 endproc程序段else Commit Transaction TranDocumentControl_Insert //如果执行结果等于0,表示动作执行成功,则提交事务Return 0 EndProc:RollBack Transaction TranDocumentContr 阅读全文
posted @ 2012-05-22 10:09 ajunfly 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 转载于http://blog.csdn.net/hzjsoft2003/article/details/6186853region 得到所有本地网络中可使用的SQL服务器列表 /// <summary> /// 得到所有本地网络中可使用的SQL服务器列表 /// </summary> /// <param name= "p_strServerList "> 服务器列表 </param> /// <returns> </returns> public static bool GetServers(ref 阅读全文
posted @ 2012-05-21 15:27 ajunfly 阅读(2909) 评论(0) 推荐(0) 编辑
摘要: 一 javascript正则表达式的基本知识1 javascript 正则对象创建 和用法 声明javascript 正则表达式 var reCat = new RegExp("cat"); 你也可以 var reCat = /cat/; //Perl 风格 (推荐)2 学习最常用的 test exec match search replace split 6个方法 1) test 检查指定的字符串是否存在 var data = "123123"; var reCat = /123/gi; alert(reCat.test(data)); //true 阅读全文
posted @ 2012-05-21 10:52 ajunfly 阅读(159) 评论(0) 推荐(0) 编辑
摘要: --创建存储过程CREATE PROCEDURE procedure_test @ID VARCHAR(100)AS DECLARE @ReturnValue varchar(100)BEGINSET NOCOUNT ON; set @ReturnValue = @ID return @ReturnValueENDGO--------执行下面sql语句,获得上面存储过程的返回值declare @value varchar(100);exec @value = procedure_test '1111111';select @value 阅读全文
posted @ 2012-05-18 11:14 ajunfly 阅读(316) 评论(0) 推荐(0) 编辑
摘要: USE [ZJPJTX]GO/****** Object: UserDefinedFunction [dbo].[fun_GradeDiff] Script Date: 05/18/2012 10:57:42 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER FUNCTION [dbo].[fun_GradeDiff] (@sum decimal(10,4)) RETURNS char(1) AS BEGIN declare @returnValue char(1)declare @temp table (startMoney 阅读全文
posted @ 2012-05-18 10:59 ajunfly 阅读(4441) 评论(0) 推荐(0) 编辑
摘要: Bitmap bmp = new Bitmap(allow_fileStream); //文件路径 allowUpload = stringHelper.IsCMYK(bmp) == "true" ? false : true; //返回true字符串则图片不是RGB模式的 public string IsCMYK(System.Drawing.Image img) { string isCmyk; if ((GetImageFlags(img).IndexOf("Ycck") > -1) || (GetImageFlags(img).IndexO 阅读全文
posted @ 2012-05-15 17:36 ajunfly 阅读(1766) 评论(0) 推荐(0) 编辑
摘要: ajax代码$.ajax({ type: "post", url: "AjaxHandler.ashx", data: {"value1":'万事如意',"value2":'心想事成',"value3":'牛牛牛'},//参数要对应 success: function(result) { alert(result); } });一般处理程序操作ashx获取参数值 string value1 = context.Request.Form[" 阅读全文
posted @ 2012-05-13 16:08 ajunfly 阅读(11421) 评论(1) 推荐(2) 编辑
摘要: //等比例缩小图片function changeImg(obj,width,height) { var img = new Image(); img.src = document.getElementById(obj.id).src var ys_w = img.width; var ys_h = img.height; if(ys_w > width || ys_h > height) { var scale; var scale1 = ys_w / width; var scale2 = ys_h / height; //alert(scale1+","+s 阅读全文
posted @ 2012-05-10 14:31 ajunfly 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页