上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 转字脚本之家 阅读全文
posted @ 2013-11-25 14:48 死神的遗迹 阅读(299) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text.RegularExpressions; string sAnswer = ""; string[] Answer = Regex.Split(lbQuestion.Text, "_+", RegexOptions.IgnoreCase); ... 阅读全文
posted @ 2013-11-22 12:51 死神的遗迹 阅读(234) 评论(0) 推荐(0) 编辑
摘要: /// /// 导出excel /// /// gridview控件名称 /// 要保存的文件名字 public static void DumpExcel(GridView gv, string FileName) { string style = @" .text { } "; HttpContext.Current.Response.ClearContent(); HttpContext.Current.Response.Charset = "GB2312"; HttpContext.Current.Response.ContentEncoding 阅读全文
posted @ 2013-11-21 14:17 死神的遗迹 阅读(180) 评论(0) 推荐(0) 编辑
摘要: http://davis16345.blog.163.com/blog/static/39002018201010374910973/ 阅读全文
posted @ 2013-11-21 10:05 死神的遗迹 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 最近做系统时需要将一篇文章中的空格"_______"替换成TextBox,.NET中有TemplateControl.ParseControl 方法 将输入字符串分析为 Web 窗体页或用户控件上的 对象。使用方法:假设页面有一个Panel,ID为Panel1:Control c = ParseControl(""); Panel1.Controls.Add(c);将指定的字符替换为控件: string s = "武汉市在_______省?"; Label1.Text = s; s = s.Replace("_______& 阅读全文
posted @ 2013-11-19 10:56 死神的遗迹 阅读(204) 评论(0) 推荐(0) 编辑
摘要: //repeater绑定数据事件绑定答案dropdownlist protected void rpQuestionAnswer_ItemDataBound(object sender, RepeaterItemEventArgs e) { DropDownList ddl = e.Item.FindControl("drpRightAnswer") as DropDownList; string[] arrAnswerOption = { "A", "B", "C", "D", "E 阅读全文
posted @ 2013-11-15 13:39 死神的遗迹 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 如果要在数据表中添加一个字段,应该如何表示呢?下面就为您介绍表添加字段的SQL语句的写法,希望可以让您对SQL语句有更深的认识。通用式: alter table [表名] add [字段名] 字段属性 default 缺省值 default 是可选参数 增加字段: alter table [表名] add 字段名 smallint default 0 增加数字字段,整型,缺省值为0 alter table [表名] add 字段名 int default 0 增加数字字段,长整型,缺省值为0 alter table [表名] add 字段名 single default 0 增加数字字段,单精 阅读全文
posted @ 2013-11-14 15:38 死神的遗迹 阅读(1391) 评论(0) 推荐(0) 编辑
摘要: $(id).append(string)可以加入html代码,可现实html页面效果 阅读全文
posted @ 2013-11-13 09:02 死神的遗迹 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Word-spacing:定义了各个单词之间的间距,取值:Normal|。Letter-spacing:定义了每个字母之间的间距,取值:Normal|。Text-decoration:定义文字的“装饰”样式,取值范围:None|underline|overline|line-through|blink。 Vertical-align:定义了元素在垂直方向上的位置,取值:Baseline|sub|super|top|text-top|middle|bottom|text-bottom|。 text-transform:使文本转换为其它形式,取值:Capitalize|uppercase|lowe 阅读全文
posted @ 2013-11-13 09:01 死神的遗迹 阅读(777) 评论(0) 推荐(0) 编辑
摘要: (function($){$.fn.extend({insertAtCaret: function(myValue){var $t=$(this)[0];if (document.selection) {this.focus();sel = document.selection.createRange();sel.text = myValue;this.focus();}else if ($t.selectionStart || $t.selectionStart == '0') {var startPos = $t.selectionStart;var endPos = $t 阅读全文
posted @ 2013-11-08 10:25 死神的遗迹 阅读(370) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页