知识在于积累(.NET之路……)

导航

05 2011 档案

让textarea自动调整大小的实现方法
摘要:<!doctype html> <html> <head> <title>自动调整大小的textarea </title> <meta charset = "utf-8" /> <style type = "text/css"> .editable{cursor:text; font-size:13px; color:#003366;width:80px;line-height:20px;height:20px;font-family:Arial;cursor:text; 阅读全文

posted @ 2011-05-17 16:21 汤尼 阅读(1042) 评论(0) 推荐(0)

textarea自己拉伸的方法
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文

posted @ 2011-05-17 16:17 汤尼 阅读(1027) 评论(0) 推荐(0)

ajax.js
摘要:var xmlhttp; function createxmlhttprequest() { if(window.ActiveXObject) { xmlhttp=new ActiveXObject((navigator.userAgent.toLowerCase().indexOf('msie 5') != -1) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP'); } } function sendstring(frmID,URL) { //debugger; createxmlhttprequest(); 阅读全文

posted @ 2011-05-16 17:06 汤尼 阅读(147) 评论(0) 推荐(0)

利用js获取html静态页地址后的参数的方法
摘要:<script language="JavaScript" type="text/JavaScript"><!--//获取参数function getUrlParam(name){nk="";var reg=new RegExp("(^|&)"+name+"=([^&]*)(&|$)");var r=window.location.search.substr(1).match(reg);if (r!=null) return unescape(r[2]) 阅读全文

posted @ 2011-05-16 16:00 汤尼 阅读(364) 评论(0) 推荐(0)

GridView.RowCommand 事件中获取当前行的信息
摘要:<%@ Page Language="C#" AutoEventWireup="true"%><%@ Import Namespace="System.Data" %><script runat="server"> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.BindGridView(); } } protected void GridView1_RowCommand 阅读全文

posted @ 2011-05-16 15:53 汤尼 阅读(219) 评论(0) 推荐(0)

T-SQL with as 的用法(转)
摘要:以下内容转自:http://wudataoge.blog.163.com/blog/static/80073886200961652022389/一.WITH AS的含义 WITH AS短语,也叫做子查询部分(subquery factoring),可以让你做很多事情,定义一个SQL片断,该SQL片断会被整个SQL语句所用到。有的时候,是为了让SQL语句的可读性更高些,也有可能是在UNION ALL的不同部分,作为提供数据的部分。 特别对于UNION ALL比较有用。因为UNION ALL的每个部分可能相同,但是如果每个部分都去执行一遍的话,则成本太高,所以可以使用WITH AS短语,则只要执 阅读全文

posted @ 2011-05-16 10:12 汤尼 阅读(546) 评论(0) 推荐(0)

ajax提交form表单
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>send string</title> <script language=javascript> var xm 阅读全文

posted @ 2011-05-03 23:35 汤尼 阅读(361) 评论(0) 推荐(0)