2010年8月4日

摘要: http://hi.baidu.com/37116566/blog/item/fbedc7ce84e3ab0092457e56.html方法一、System.Net.WebClient WebClientObj = new System.Net.WebClient(); System.Collections.Specialized.NameValueCollection PostVars = ne... 阅读全文

posted @ 2010-08-04 16:04 Love 阅读(327) 评论(0) 推荐(0) 编辑

摘要: 方法一、System.Net.WebClient WebClientObj = new System.Net.WebClient(); System.Collections.Specialized.NameValueCollection PostVars = new System.Collections.Specialized.NameValueCollection(); PostVars.Add... 阅读全文

posted @ 2010-08-04 16:03 Love 阅读(287) 评论(0) 推荐(0) 编辑

摘要: 此方法可以在c#后台实现表单以post方式提交的方法;其中参数:postData 为提交参数 形如:pastData=“username=aaa&userpwd=bbb”; posturl 为提交事件指定的路径public string GetPage(string posturl,string postData) { Stream outstream = nul... 阅读全文

posted @ 2010-08-04 16:01 Love 阅读(1107) 评论(0) 推荐(0) 编辑

摘要: 参考了微软的资料http://chs.gotdotnet.com/quickstart/aspplus/:总结几点:1. 为了使页能够访问执行SQL 数据必须将 System.Data 和System.Data.SqlClient 命名空间导入到页中2. 创建与数据库的 SqlConnection,传递连接字符串,然后构造包含查询语句的 SqlDataAdapter 对象,调用命令的 Fill 方... 阅读全文

posted @ 2010-08-04 15:40 Love 阅读(250) 评论(0) 推荐(0) 编辑


2009年6月10日

摘要: string q = Request.Url.Query;System.Collections.Specialized.NameValueCollection nv = System.Web.HttpUtility.ParseQueryString(q, System.Text.Encoding.GetEncoding("GB2312")); string areaid = nv["aid"]; 阅读全文

posted @ 2009-06-10 16:56 Love 阅读(319) 评论(0) 推荐(0) 编辑


2009年1月21日

摘要: function trim(str){ //删除左右两端的空格 return str.replace(/(^\s*)|(\s*$)/g, ""); } 阅读全文

posted @ 2009-01-21 14:03 Love 阅读(219) 评论(0) 推荐(0) 编辑


2008年11月20日

摘要: 1.当应用复制一段时间后,碰到了这样一个问题,在插入nvarchar(max)类型的字段值时,报异常"Length of LOB data (92472) to be replicated exceeds configured maximum 65536. The statement has been terminated." (“要复制的 LOB 数据的长度(92472)超出了配置的... 阅读全文

posted @ 2008-11-20 15:50 Love 阅读(617) 评论(0) 推荐(0) 编辑


2008年10月31日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.IO;using System.Collections.Specialized;namespace Controller.Interface.Area{ public clas... 阅读全文

posted @ 2008-10-31 15:14 Love 阅读(298) 评论(0) 推荐(0) 编辑


2008年8月4日

摘要: 获取一组radio被选中项的值var item = $('input[@name=items][@checked]').val();获取select被选中项的文本var item = $("select[@name=items] option[@selected]").text();select下拉框的第二个元素为当前选中值$('#select_id')[0].selectedIndex = 1;... 阅读全文

posted @ 2008-08-04 12:13 Love 阅读(997) 评论(0) 推荐(0) 编辑


2008年7月25日

摘要: Example codeConverting a database or object creation queries to use memcached is simple. Typically, when using straight database queries, example code would be as follows:function get_foo (int userid)... 阅读全文

posted @ 2008-07-25 16:31 Love 阅读(328) 评论(0) 推荐(0) 编辑


Copyright © 2024 Love
Powered by .NET 8.0 on Kubernetes