10 2012 档案
摘要:声明 table 格 TableCell cell0 = new TableCell(); 此生成的Button会导致页面回发 //HtmlButton btn = new HtmlButton();此为html按钮 HtmlInputButton btn = new HtmlInputButton(); btn.Value = "测试按钮"; btn.ID = "2";给html按钮添加onclick属性 btn.Attributes.Add("onclick","openwindows();");将此按钮搁到t
阅读全文
摘要:采用如下的方式进行验证。if(jQuery("#form1").validationEngine('validate'))如果页面中有JS调用了其他的按钮点击事件的话。需要将其type设定为button不能讲其type 设置为submit<input type="button" class="Button4" onclick="GetValues()" value="保存" />JS验证数组中含有相同元素: var NameIsExit=false; var nary
阅读全文
摘要:1:获取某表的列名select 列名=name from syscolumns where id=object_id(表名')2:获取数据库表中的表名select 表名=name from sysobjects where objectproperty(id, 'isusertable ')=13:获取数据库表中的列名、字段类型、字段长度select o.name as tbname, c.name as columnname, (case t.name when 'int' then '数字类型'when 'datetime&#
阅读全文