摘要:$(document).ready(function() {var widthvalue;if (jQuery.browser.msie) {$("#DropDownList1").focus(function() {widthvalue = $(this).css("width");$(this).css("width", "auto");}).blur(function() {$(this).css("width", widthvalue);});}});http://kb.cnblogs.
阅读全文
摘要:http://www.cnblogs.com/zhangziqiu/archive/2009/04/30/jQuery-Learn-1.html jqueryseries.SmartLabelStyle.Enabled = false;$(function() { var baseIndex = 100; $("#tblGrid") .find("tr").each(function(r) { $(this).find("td").each(function(c) { $(this).find("input") .
阅读全文
摘要:OnClientClick是客户端事件方法.一般采用JavaScript来进行处理.也就是直接在IE端运行.一点击就运行.OnClick事件是服务器端事件处理方法,在服务器端,也就是IIS中运行.点击按钮后,执行postback,再运行protected void Page_Load(object sender, EventArgs e){btnDel.OnClientClick = "return confirm('确定要删除该管理员吗?')"; //为什么这句可以,下边那句不行btnDel.Attributes.Add("OnClientCli
阅读全文
摘要:string dirp = @"E:\hh"; DirectoryInfo mydir = new DirectoryInfo(dirp); foreach (FileSystemInfo fsi in mydir.GetFileSystemInfos()) { if (fsi is FileInfo) { FileInfo fi = (FileInfo)fsi; string x = Syst...
阅读全文