随笔分类 -  asp.net

字符串加密
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Infrastructure.Util{ public class Encrypt { ... 阅读全文

posted @ 2015-07-03 19:30 ctautoRR 阅读(171) 评论(0) 推荐(0)

js 将网页内容生成图片
摘要:$(function () { $("#saveimg_btn").on("click",function (event) { event.preventDefault(); html2canvas($("#prin... 阅读全文

posted @ 2015-07-03 16:33 ctautoRR 阅读(1215) 评论(0) 推荐(0)

js 获取asp:dropdownlist选中的值
摘要:var eSection = document.getElementById(""); var eSectionValue = eSection.options[eSection.selectedIndex].value; alert(e... 阅读全文

posted @ 2015-07-01 20:07 ctautoRR 阅读(456) 评论(0) 推荐(0)

后台特殊字符处理,ajax
摘要:Dictionary d = new Dictionary(); d.Add("price", price); d.Add("note", note); d.Add("num", bu... 阅读全文

posted @ 2015-06-30 17:50 ctautoRR 阅读(317) 评论(0) 推荐(0)

string.Format组合跳转路径
摘要:string url = this.ResolveClientUrl("~/page/bn_stu.aspx"); string str = string.Format("{0}?op={1}&", url, ViewState["yue"].ToString()); ... 阅读全文

posted @ 2015-06-29 14:53 ctautoRR 阅读(422) 评论(0) 推荐(0)

jquery 设置asp:dropdownlist 选中项
摘要:$("#ddlPro").find('option').each(function () { this.selected = (this.text == dlprom); }); 阅读全文

posted @ 2015-06-08 09:31 ctautoRR 阅读(714) 评论(0) 推荐(0)

asp:UpdatePanel中js失效问题已解决
摘要:1.jsfunction textSAll(o) { o.select(); } var dddd_dd = function () { $(":text").on("click", function () { ... 阅读全文

posted @ 2015-05-11 19:43 ctautoRR 阅读(270) 评论(0) 推荐(0)

repeater 一个td多个div显示图片
摘要:... 阅读全文

posted @ 2015-03-11 09:26 ctautoRR 阅读(270) 评论(0) 推荐(0)

aps.net js获取服务器控件
摘要:document.getElementById("").value; 阅读全文

posted @ 2015-03-04 11:56 ctautoRR 阅读(124) 评论(0) 推荐(0)

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

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

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

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

后台生成textbox并设置多行属性,自动换行
摘要:Table tb = new Table(); TableRow row1 = new TableRow(); TableCell tc1 = new TableCell(); ... 阅读全文

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

asp.net多图片上传同时保存对每张图片的描述
摘要:前台aspx //图片预览和描述 function previewImage(file) { var div = document.getElementById('preview'); div.innerHTML = ""; ... 阅读全文

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

获取一个汉字的拼音__首字母
摘要:public static string getFirstCode(string myChar) { byte[] arrCN = System.Text.Encoding.Default.GetBytes(myChar); if (arr... 阅读全文

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

导航