04 2008 档案
用VS.NET 2003开发和调用Web Service实例
摘要:“MS.NET平台内建了对Web Service的支持,包括Web Service的构建和使用。与其它开发平台不同,使用.NET平台,你不需要其他的工具或者SDK就可以完成Web Service的开发了。.NET Framework本身就全面支持Web Service,包括服务器端的请求处理器和对客户端发送和接受SOAP消息的支持”(前面这句话是icech借用别人的)。本文将一步一步带你用Micr... 阅读全文
posted @ 2008-04-29 13:48 heart-in-sky
SQL Server 密码策略和证书
摘要:SQL Server 密码策略和证书 SQL Server 2005加强了在Windows Server 2003下运行的SQL Server登录的身份验证。SQL Server 2005 对其他操作系统下运行的SQL Server的身份验证也做了一些改进。正如本章一开始提到的,用户可以使用Windows身份验证或者SQL Server身份验证来登录SQL Server。Windows身份验证是非... 阅读全文
posted @ 2008-04-24 14:25 heart-in-sky 阅读(4047) 评论(0) 推荐(0)
滚动条
摘要: 阅读全文
posted @ 2008-04-24 09:47 heart-in-sky 阅读(107) 评论(0) 推荐(0)
DataGrid显示字段过长用...代替
摘要:方法一:<%#DataBinder.Eval(Container,"DataItem.你的字段").ToString().Length>9?DataBinder.Eval(Container,"DataItem.你的字段").ToString().Substring(0,7)+"...":DataBinder.Eval(Container,"DataItem.你的字段")%>方法... 阅读全文
posted @ 2008-04-23 11:44 heart-in-sky 阅读(271) 评论(0) 推荐(0)
模态窗口
摘要:.模态窗口的打开,model window open2.模态窗口的关闭,model window close3.模态窗口的传递参数,model window get valuse4.其他....,other .. 1.window.showModalDialog("DialogPage.aspx","newwin","dialogHeight: 200px; dialogWidth: 150px;... 阅读全文
posted @ 2008-04-21 16:11 heart-in-sky 阅读(4677) 评论(0) 推荐(0)
判断是否为数字
摘要:/// <summary>/// 判断是否是数字/// </summary>/// <param name="str">字符串</param>/// <returns></returns>public static bool IsNumeric(string str){if (str == null || str.Length... 阅读全文
posted @ 2008-04-21 14:35 heart-in-sky 阅读(209) 评论(0) 推荐(0)
样式隐藏控件
摘要:style="DISPLAY: none" 阅读全文
posted @ 2008-04-11 14:17 heart-in-sky 阅读(163) 评论(0) 推荐(0)
Sql 判断数据是否存在
摘要:string sql=@" IF NOT EXISTS (SELECT * FROM Roche_datadictionary WHERE code LIKE '001') BEGIN INSERT INTO Roche_datadictionary(code) VALUES ('tom') END "; 阅读全文
posted @ 2008-04-03 11:19 heart-in-sky 阅读(982) 评论(0) 推荐(0)
App.config
摘要: 阅读全文
posted @ 2008-04-01 16:55 heart-in-sky 阅读(132) 评论(0) 推荐(0)
C#中常用的经典文件操作方法
摘要:C#追加文件StreamWriter sw = File.AppendText(Server.MapPath(".")+"\\myText.txt");sw.WriteLine("追逐理想");sw.WriteLine("kzlll");sw.WriteLine(".NET笔记");sw.Flush();sw.Close();C#拷贝文件string OrignFile,NewFile;Orign... 阅读全文
posted @ 2008-04-01 16:55 heart-in-sky 阅读(176) 评论(0) 推荐(0)
写入txt文件
摘要:DateTime datatimes;datatimes=DateTime.Now;string filepath=System.Configuration.ConfigurationSettings.AppSettings["ConnenctionStringBaseData"]+SCode+datatimes.ToString("yyyy-MM-dd").Substring(0,4)+data... 阅读全文
posted @ 2008-04-01 16:55 heart-in-sky 阅读(246) 评论(0) 推荐(0)
读取txt文件
摘要:if(!File.Exists(MapPath('070613.txt'))){Response.Write("文件"+MapPath("070613.txt")+"打开出错");return;}StreamReadertxtread=newStreamReader(MapPath('weather.txt'),System.Text.Encoding.Default);Stringtxt=txt... 阅读全文
posted @ 2008-04-01 16:54 heart-in-sky 阅读(311) 评论(0) 推荐(0)
DataGrid设计技巧
摘要:DataGrid行随鼠标变色 private void DGzf_ItemDataBound(objeCT sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType!=ListItemType.Header) { e.Item.Attributes.Add( "onmouse... 阅读全文
posted @ 2008-04-01 16:54 heart-in-sky 阅读(120) 评论(0) 推荐(0)
Datagrid中改变链接着色
摘要:HyperLink hltemp = new HyperLink(); hltemp.NavigateUrl =_FileVirtualPath.Trim()+"\\"+filelimit+"\\"+tbTemp.Text.ToString(); hltemp.Target = "_blank"; hltemp.ForeColor=System.Drawing.Color.Red;//改变着色 阅读全文
posted @ 2008-04-01 16:54 heart-in-sky 阅读(132) 评论(0) 推荐(0)
page不刷新
摘要:page.smartNavigation=true ; 阅读全文
posted @ 2008-04-01 16:54 heart-in-sky 阅读(132) 评论(0) 推荐(0)