- 博客(13)
- 资源 (1)
- 收藏
- 关注
转载 asp.net 常用代码
1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")接收参数:string a = Request.QueryString("id");string b = Re
2008-06-30 11:54:00
378
原创 export excel file with using data table
{ public string ExportDataTable(DataTable dataTable)try{ object missing = Type.Missing;//Create Excelexcel = excel.DisplayAlerts = workbooks = excel.Workbooks;workbook = wor
2008-03-24 19:06:00
468
原创 create excel sheet with dataset
using////////////////////////////////////////////////////// { Excel = Microsoft.Office.Interop.Excel;public string ExportDataSet2(DataSet dataSet,DataTable myTable,string userType)try{
2008-03-24 19:02:00
545
原创 pass xml string in database
@sXML is xml string input/// DECLARE @xmlDocumentHandle INT DECLARE @xmlDocument NVARCHAR(MAX) SET @xmlDocument = @sXML EXEC sp_xml_preparedocument @xmlDocumentHandle OUTPUT,@xmlDocument
2008-02-03 10:16:00
372
原创 transfer xml data into dataset and bind into gridview
client code:http://www.w3.org/1999/xhtml" > Untitled Page this page is to transfer XML data into Dataset table ////////////////////////////////////////////////
2008-02-03 09:54:00
493
原创 transfer xml data using javascript
client code:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml" > this page creates table by java script var sortparamforPKID; var sor
2008-02-03 09:48:00
420
原创 strong team with strong guys
this is a strong team, not only in skills, but also in responsibility.look back last year, also this team, i was pride i was a member of them. we work through the night, over 14hs everyday. all the
2008-02-03 09:40:00
368
原创 transaction sql
*******************Transact_SQL********************--语 句 功 能--数据操作SELECT --从数据库表中检索数据行和列INSERT --向数据库表添加新数据行DELETE --从数据库表中删除数据行UPDATE --更新数据库表中
2008-02-02 20:41:00
1036
原创 页面(PAGE)标记(TAGS)
页面(PAGE)标记(TAGS)HTML 文件结构(Document Structures)......... , , , , HTML 文件的正文写在这里... ... 语言字符集(Charsets)的信息 #= us-ascii, iso-8859-1, x-mac-roman, iso-8859-2, x-mac-c
2008-02-02 20:34:00
816
原创 move cursor by key board
//use keyboard to move cursor var cols=6;//5; var obj; var CanMove=false; var key; // var tRow = document.getElementById("amlEntryDataGrid").rows.leng
2008-02-02 20:28:00
499
原创 input text have to be number or character
Regex reg = new Regex(@"[^a-zA-Z0-9]$");Match m = reg.Match(textInput.ToString());if (m.Success){ Page.RegisterStartupScript("VALIDATE", "alert(You can only input character or numberic o
2008-02-02 20:25:00
295
原创 validate url security
//Regex reg = new Regex(@"^(http|https|ftp)/://[a-zA-Z0-9/-/.]+/.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9/-/._/?/,/////+&%/$#/=~])*$"); ////this regular expression cant validate http://localho
2008-02-02 20:16:00
302
原创 validate url exists using javascript
function TestURL(URLid) { var url = document.getElementById(textID).value; var httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
2008-02-02 20:10:00
411
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人