摘要:
function isIdCardNo(str,str2,str3){ var num= document.getElementById(str).value; var factorArr = new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1); var error; var varArray = new Array(); var intValue; var lngProduct = 0; var intCheckDigit; var intStrLen = num.length; var i... 阅读全文
摘要:
<html><head><title>计算器</title><script lauguage="javascript">function js(x,y,z){ var num1=parseFloat(document.getElementById(x).value,10); var num2=parseFloat(document.getElementById(y).value,10); document.getElementById(z).innerHTML=num1+num2;}</script>& 阅读全文
摘要:
CREATE TABLE [imageinsertsql] ( [Imageid] [int] IDENTITY (1, 1) NOT NULL , [imagetitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [imagetype] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [imagesize] [int] NULL , [imagedata] [image] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]GO <div> .. 阅读全文
摘要:
alter table CodeInfo drop constraint FK_CodeInfo_CodeCaalter table CodeInfo add constraint FK_CodeInfo_CodeCa foreign key(CategoryID) references CodeCategory(CategoryID)create table CodeInfo( CodeID int identity(1,1) primary key ,CategoryID varchar(8) references CodeCategory(CategoryID) ,... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data;using System.Data.SqlClient;using Excel = Microsoft.Office.Interop.Excel;using System.Data.OleDb;namespace 阅读全文
摘要:
1.新建Golbal.asax void Application_Error(object sender, EventArgs e) { Exception objErr = Server.GetLastError().GetBaseException(); string error = "发生异常页: " + Request.Url.ToString() + "<br>"; error += "异常信息: " + objErr.Message + "<br>"; Server.ClearE 阅读全文
摘要:
<a href="Javascript:history.go(-1)">返回上一页</a> <a href="Javascript:history.back()">返回上一页</a> <a href="Javascript:window.history.go(-1)">返回上一页</a><a href="Javascript:window.history.back()">返回上一页</a> <a href=&quo 阅读全文
摘要:
1,页面间参数传递: <asp:HyperLinkField DataNavigateUrlFields="Building_ID" DataNavigateUrlFormatString="BulidingModify.aspx?Building_ID={0}" HeaderText="操作" Text="修改" /> string sqe = Request.QueryString["SQE"];2,Web中弹出提示框protected void Mess(string Mes) 阅读全文
摘要:
1,读取TXT写入DB步骤:打开连接——SqlCommand(Conn,Str)——逐行读取TXT文本 构造SqlParameter 的参数——执行ExecuteNonQuery()—— 清除参数2,乱码问题:Txt文档的编码要和StreamReader的编码一致:using (StreamReader streamReader = new StreamReader(file, Encoding.Default))//解决乱码问题using System;using System.Collections.Generic;using System.ComponentModel;using Sys 阅读全文
摘要:
1,省的ID,Name直接定义成类,实例化后添加的到ComBox(DropDrownList)中,DisplayMember设置为ProName2,绑定后SelectedIndex=0,显示绑定的第一个值3,Configure中设置连接字符串,ConfigurationManager 中得到字符串的值using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text; 阅读全文