- 博客(8)
- 收藏
- 关注
原创 .net自定义控件Control、WebControl、CompositeControl
一、呈现方法1、Control主要有以下4个方法用于呈现//该方法为入口方法public virtual void RenderControl (HtmlTextWriter writer) { this.RenderControl(writer,this.xxxAdapter); } protected void RenderControl(Ht
2013-12-30 16:31:25 942
原创 .net页面事件顺序
public partial class _Default : Page { #region OnPreInit 第一步 protected override void OnPreInit(EventArgs e) { //检查 IsPostBack 属性来确定是不是第一次处理该页。 //创建或重新创建动态控件。 //动
2013-12-29 11:25:47 544
原创 C# 通过反射获取/设置属性值
//具体类public class A{ public int Property1 { get; set; }}A aa = new A(); Type type = aa.GetType();PropertyInfo propertyInfo = type.GetProperty("Property1");propertyInfo.SetValue(aa,
2013-12-12 20:33:40 1658
原创 前台访问后台的几种方法
1、WebMethodpublic static方法,ajax/PageMethods调用。test.cs[WebMethod] public static string GetUserName() { //...... }需要访问操作session时[WebMethod(EnableSession = true)]//或[WebMethod(true)] public
2013-12-05 21:40:19 7682
原创 跟踪一个表的所有操作的触发器
--跟踪一个表的所有操作的触发器create trigger tr_teston testfor insert,update,deleteasset nocount on--用临时表保存exec('DBCC INPUTBUFFER...')的返回值create table #t(EventType varchar(50),Parameters int ,EventInfo varc
2013-12-01 02:34:20 853
原创 Js中 关于top、clientTop、scrollTop、offsetTop的用法
网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);网页可见区域高: document.body.offsetHeight (包括边线的宽);网页正文全文宽: document.body.scroll
2013-12-01 02:10:53 599
原创 可以直接拿来用的15个jQuery代码片段
1.预加载图片 (function($) { var cache = []; // Arguments are image paths relative to the current page.. $.preLoadImages = function() { var args_len = arguments.length; for (var i = a
2013-12-01 00:05:13 610
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人