08 2011 档案
摘要:互联网科技发展的速度真可谓惊人的快,一个稍不留神,你就可能无法跟上它的步伐。HTML5的变化和更新也压倒不少人,这篇文章将向大家介绍一些最基本也非常必要的HTML技巧。1. 新的文档类型(Doctype)只要这么简单的15个字符就可以了。(注意:你的doctype的申明需要出现在你html文件的第一...
阅读全文
摘要:--SET STATISTICS io ONSET STATISTICS TIME ON select * from tbSET STATISTICS TIME OFF--SET STATISTICS io OFF--执行后点“消息”那里,会有如下显示--(1 行受影响)--SQL Server 执...
阅读全文
摘要://将用户数据缓存userinfocatch(json);///用户信息缓存function userinfocatch(obj) { $.data(document.body, "userinfo_catch", obj);}//读取缓存function userinfo() { var a = ...
阅读全文
摘要://缺一位select top 1 * from PRO_Precisionstretch_Merge where rodno like @rodno+'_' and right(rodNO,1) > 'G' order by rodNO asc//缺多位select top 1 * from PR...
阅读全文
摘要:insert into [正式库]..表名 select * from [测试库]..相同表名
阅读全文
摘要:一、字符转换函数1、ASCII()返回字符表达式最左端字符的ASCII 码值。在ASCII()函数中,纯数字的字符串可不用‘’括起来,但含其它字符的字符串必须用‘’括起来使用,否则会出错。2、CHAR()将ASCII 码转换为字符。如果没有输入0 ~ 255 之间的ASCII 码值,CHAR() 返...
阅读全文
摘要:if (this.txtapplRegDate.Value.Trim() != "") //登记日期 { sqlStr.Append(" and applRegDate >= '" + this.txtapplRegDate.Value + " 00:00:00'"); }
阅读全文
摘要:function CheckNum(number) { var regNum = /^[\d]+$/; var re=new RegExp(regNum); if (re.test(number.value)) { return true; } else { alert("必须是数字!"); doc...
阅读全文
摘要://前台' ForeColor=''>//后台"(CASE WHEN Apply.applStatusID=0 THEN '未处理' when Apply.applStatusID=1 THEN '已审批' when Apply.applStatusID=2 THEN '退回' END) as ap...
阅读全文
摘要:if(!CheckEmail(document.getElementById("txtMail").value.trim())){ alert('电子邮箱格式不正确!'); document.getElementById("txtMail").focus(); return false; }
阅读全文
摘要://或者AutoCompleteType="Disabled" MaxLength="4" onkeypress="checkNum()"
阅读全文
摘要:this.lbl_error.style.add("color", "green");
阅读全文
摘要:HorizontalAlign="center"
阅读全文
摘要:HeaderStyle-Font-Bold="false"或th{font-weight:normal;}
阅读全文
摘要:AspNetPager1.CurrentPageIndex = 1;
阅读全文
摘要://前台弹出确定框OnClientClick="javascript:return confirm('你确定要删除该流程吗?')"
阅读全文
摘要://ASP.NET后台页面跳转Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "");//后台弹出确定框ClientScript.RegisterStartupScript(GetType(), "message", "");/...
阅读全文
摘要:function datepress() { var k = window.event.keyCode; if (k 57) { return false;} return true;}
阅读全文
摘要://禁止页面回退javascript: window.history.forward(1);//禁止页面刷新 document.onkeydown = function() { if ((event.keyCode == 116) || (event.ctrlKey && event.keyCode...
阅读全文
摘要:/// /// 同时删除多个数据 /// /// /// private void delOrderDetail(int pIndex, int pRowIndex) { while (pRowIndex < GridView1.Rows.Count) { if (((CheckBox)Gr...
阅读全文
摘要:private void DataTabletoExcel(System.Data.DataTable tmpDataTable,string strFileName) { if (tmpDataTable == null) { return; } int rowNum = tmpDataTable...
阅读全文
摘要:private void delOrderDetail(int pIndex, int pRowIndex) { while (pRowIndex < GridView1.Rows.Count) { if (((CheckBox)GridView1.Rows[pRowIndex].Cells[0]....
阅读全文
摘要:this.btnSave.ImageUrl = "images/btn_SaveDisable.gif";//白色this.btnSave.Enabled = false;
阅读全文
摘要://前台 '> //后台/// /// 行绑定 /// /// /// protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataCo...
阅读全文
摘要:select a.id1,b.snum2-a.snum1from (select exdeGoodsID as id1,sum(exdeQuantity)as snum1 from ExdertDetail group by exdeGoodsID) as afull JOIN (select im...
阅读全文
摘要://cs文件using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;...
阅读全文
摘要://aspx页面中 ·','','height=258, width=479, top=200, left=200')"> //cs文件中if (!IsPostBack) //!IsPostBack避免重复刷新加载页面 { //获取前6条分类供求信息 dlZP.DataSou...
阅读全文
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ...
阅读全文
摘要://Exit.aspx页面中protected void Page_Load(object sender, EventArgs e) { Session.Abandon();//结束session Session["UserName"] = null;//将session赋值为空 Response....
阅读全文
摘要://msc自己写的答案,Ans正确答案 for (int i = 0, j = 0; i < Ans.Length ; i++, j++) { if (Ans[i] == msc[j])//如果两个答案相同,则正确答案数加一个 score ++; else continue; }
阅读全文
摘要://传送值protected void btnsend_Click(object sender, EventArgs e) { string id, disguise, random; random = StrOperation.RandString(); disguise = StrOperati...
阅读全文
摘要:using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste...
阅读全文
摘要:OnClientClick="location.href='default.aspx';return false;"
阅读全文
摘要://设为首页【设为首页】//加入收藏【加入收藏】
阅读全文
摘要:SqlConnection(@"Data Source=QIU-6B15F2E079B\SQL2005;DataBase=db_SIS;User ID=sa;PWD=123");
阅读全文
摘要://前台//验证码生成页using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System...
阅读全文
摘要:if (CheckData()) { return; }Boolean flag = false; if (rep_item_list.Rows.Count == 0) { ScriptManager.RegisterStartupScript(Page, GetType(), "popUp", "...
阅读全文
摘要:onkeydown="if(window.event.keyCode==13){window.event.keyCode=9;}"
阅读全文
摘要:if (!string.IsNullOrEmpty(Request.QueryString["param"]) && Request.QueryString["param"]=="1")
阅读全文
摘要:for (int i = 0, j = 0; i < Ans.Length ; i++, j++) { if (Ans[i] == msc[j]) score ++; else continue; }
阅读全文
摘要:SqlParameter[] parms ={ db.MakeInParam("@name",SqlDbType.VarChar,50,name), db.MakeInParam("@pass",SqlDbType.VarChar,50,pass), }; StringBuilder sbf = ...
阅读全文
摘要:SqlConnection conn = BaseClass.DBCon(); conn.Open(); SqlCommand cmd = new SqlCommand("select * from tb_Student where StudentNum='" + Session["ID"].ToS...
阅读全文
摘要:string stype = ddlType.SelectedItem.Text; string strsql = ""; switch (stype) { case "学号": strsql = "select * from tb_Student where StudentNum like '%"...
阅读全文
摘要:this.Button1.Attributes.Add("onclick", "return showJSON();");
阅读全文
摘要://返回前一页Response.Write("");//打开、关闭页面Response.Write("//关闭当前页并且返回前一页Response.Write("");");
阅读全文
摘要:Request.UserHostAddress
阅读全文
摘要:string connectionString = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];SqlConnection sqlConn = new SqlConnection(connecti...
阅读全文
摘要:即在子目录下的web.config: 根目录下的web.config:
阅读全文
摘要:用正则表达式限制只能输入中文:onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(...
阅读全文
摘要://在DeleteText属性中删除 //或在onClientClick属性中return confirm('您确认删除要删除么?')//或删除
阅读全文
摘要:GridView1.DataKeys[e.RowIndex].Value.ToString() ;
阅读全文
摘要:var times=history.length;document.write('此浏览器已经去过'+times+'个站了。');
阅读全文
摘要:using (SqlConnection conn = new SqlConnection(SQLHelper.constr))//SQLHelper.constr为数据库连接字符串 { conn.Open();//连接数据库 //使用事务处理多SQL语句 using (SqlTransaction...
阅读全文
摘要:$('#averagediameter').attr("readonly", 'readonly');
阅读全文
摘要:$('#getBrokenRodNO').die().live("click", function () { getBrokenRodNO(); });
阅读全文
摘要:var isUser = $("#hid").val(); if (isUser == "false"){ $('#btnmerge').hide(); }
阅读全文
摘要:$(document).ready(function (){ $('#btnmerge').click(function () { var RodNo = $('#RodNo').val(); $.ajax({ type: "post", dataType: 'json', url: "Precis...
阅读全文
摘要:1) { %> " title="上一页">上一页 " title="上一页">下一页
阅读全文
摘要:Link Text Here//或用jquery写Super Duper Product$('a.affLink').mouseover(function(){window.status=this.title;return true;})
阅读全文
摘要:string sPassWord = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassWord.Text.ToString(), "MD5") ;//md5加密
阅读全文
摘要:string UserName = FunStr(Request.Form["UserName"].ToString());string UserPwd = FunStr(Request.Form["UserPwd"].ToString());public static string FunStr(...
阅读全文
摘要:string id = GridView1.Rows[e.NewSelectedIndex].Cells[0].Text;
阅读全文
摘要://前台 '> //后台for (int i = 0; i < this.GridView1.Rows.Count; i++) { bool isChecked = ((CheckBox)GridView1.Rows[i].FindControl("CB")).Checked; if (isCh...
阅读全文
摘要:" target="_blank" >' ForeColor="#6C6C6C">
阅读全文
摘要://前台' onclick="LinkButton3_Click" onclientclick="return confirm('你确定要删除该条信息吗?')">//后台string ID=((LinkButton)sender).CommandArgument.ToString();
阅读全文
摘要:" target="_blank" >' ForeColor="#6C6C6C">
阅读全文
摘要:Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "");
阅读全文
摘要://其中BorderStyle="None"就是可以去掉TextBox中边框中的效果的代码//asp.net中实现行间距的代码 textBlock1.Padding = new Thickness(Int32.Parse(width1)); textBlock2.Padding = new Thic...
阅读全文
摘要://前台 ' onclick="LinkButton1_Click1"> //后台string ID = (((LinkButton)sender).CommandArgument.ToString()).ToString();//获取当前行的ID值 Page.ClientScript.R...
阅读全文
摘要://前台 两 三 //后台SqlSen ss = new SqlSen();//调用APP_CODE中函数string text1, text2, text3, size1, size2, size3, width1, width2, width3; ss.SELIDData(id, out tex...
阅读全文
摘要:using (SqlConnection conn = new SqlConnection(SQLHelper.constr))//SQLHelper.constr为数据库连接字符串 { conn.Open();//连接数据库 //使用事务处理多SQL语句 using (SqlTransaction...
阅读全文
摘要://asp.net中根据数据库修改字符串最后一位,使其自增if (ds.Tables[0].Rows.Count > 0)//如果数据库中存在该数据 { var getrodNo = ds.Tables[0].Rows[0]["NO"].ToString();//得到该数据 var lastrodN...
阅读全文

浙公网安备 33010602011771号