2015年2月4日

后台找到repeater里面的div并添加客户端点击事件

摘要: public partial class Inv_SelectWorkservice : System.Web.UI.Page,IPostBackEventHandler{ }通过OnItemCreated找到repeater里面的div并添加客户端点击事件div要加上runat=... 阅读全文

posted @ 2015-02-04 20:09 ctautoRR 阅读(213) 评论(0) 推荐(0)

2015年1月27日

dropDownList之"请选择",同时设置默认选项

摘要: dropDownList.Items.Insert(0, new ListItem("--请选择--", "-1"));dropDownList.SelectedIndex = 1;注意顺序即可. 阅读全文

posted @ 2015-01-27 21:06 ctautoRR 阅读(368) 评论(0) 推荐(0)

2015年1月19日

asp.net 后台对话框,确认跳转

摘要: Response.Write(""); 阅读全文

posted @ 2015-01-19 13:19 ctautoRR 阅读(351) 评论(0) 推荐(0)

2015年1月18日

后台生成textbox并设置多行属性,自动换行

摘要: Table tb = new Table(); TableRow row1 = new TableRow(); TableCell tc1 = new TableCell(); ... 阅读全文

posted @ 2015-01-18 15:51 ctautoRR 阅读(262) 评论(0) 推荐(0)

asp.net多图片上传同时保存对每张图片的描述

摘要: 前台aspx //图片预览和描述 function previewImage(file) { var div = document.getElementById('preview'); div.innerHTML = ""; ... 阅读全文

posted @ 2015-01-18 13:45 ctautoRR 阅读(358) 评论(2) 推荐(0)

2015年1月10日

获取一个汉字的拼音__首字母

摘要: public static string getFirstCode(string myChar) { byte[] arrCN = System.Text.Encoding.Default.GetBytes(myChar); if (arr... 阅读全文

posted @ 2015-01-10 13:28 ctautoRR 阅读(244) 评论(0) 推荐(0)

2014年12月30日

mysql数据库日期是varchar类型的时间比较查询

摘要: 单纯的字符串比较结果不精确.select*from表明wheretimes>'2088/12/8 10:02:40'(×)转换函数如下(数据库为varchar):select*fromh_hotelcontextwherenow()betweenSTR_TO_DATE(Start_time,'%Y-... 阅读全文

posted @ 2014-12-30 18:45 ctautoRR 阅读(7393) 评论(0) 推荐(0)

导航