上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 107 下一页
摘要: 1.建立一aspx页面,html代码2.cs代码usingSystem.Data.SqlClient;usingSystem.IO;protectedvoidPage_Load(objectsender,EventArgse){if(!Page.IsPostBack){BindData();}if(ID!=""){GetDescriptionByID(ID);}}property#regionpropertyprivatestringID{get{if(Request["ID"]!=null&&Request["ID"].ToString()!=""){returnRequest["ID"]; 阅读全文
posted @ 2007-03-19 22:59 leonardleonard 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 功能:在textbox中输入内容,动态从数据库模糊查询显示到下拉框中,以供选择1.建立一aspx页面,html代码 HTMLHEADtitleWebForm1/titleSCRIPTlanguage="javascript"//城市------------------------------functioncityResult(){varcity=document.getElementById("TextBox1");WebForm1.GetCityList(city.value,get_city_Result_CallBack);}functionget_city_Res 阅读全文
posted @ 2007-03-19 22:58 leonardleonard 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1.建立一个aspx页面html代码htmlxmlns="http://www.w3.org/1999/xhtml"headid="Head1"runat="server"title小山/titlelinktype="text/css"href="../../Styles/tree_css/tree.css"rel="stylesheet"/headbodyformid="Form1"runat="server"tablewidth=100%cellpadding=0cellspacing=0border=0colgroupcolwidth=180/ 阅读全文
posted @ 2007-03-19 22:57 leonardleonard 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.页面cs代码usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingAjaxPro;publicpartialclass_Default:System.Web.UI.Page{protectedstring 阅读全文
posted @ 2007-03-19 22:56 leonardleonard 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.建一个通用的处理数据的类usingSystem;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Text;namespaceDocument{/**////summary///SummarydescriptionforDataHelper.////summarypublicclassDataHelper{publicDataHelper(){////TODO:Addconstructorlogichere//}publicstaticstringConnectionString=System.Configuration 阅读全文
posted @ 2007-03-19 22:52 leonardleonard 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 公司有个最近要开发一个小系统,是采用ASP.NET开发,现在被一难题卡住了. 需实现功能: 用户登录进来后系统自动取得用户名,这样就不用用户再登录了, 方便用户使用,并根据用户名取他的权限. 难点: 现在读NT用户名读不倒. 折腾了大半天都没搞定,现向各位高手求救,给小弟指点明路! 1楼http://singlepine.cnblogs.com/articles/299457.html private void Button15_Click(object sender, System.EventArgs e) { SelectQuery query = new SelectQ 阅读全文
posted @ 2007-03-19 22:51 leonardleonard 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.WMI简介WMI是英文WindowsManagementInstrumentation的简写,它的功能主要是:访问本地主机的一些信息和服务,可以管理远程计算机(当然你必须要拥有足够的权限),比如:重启,关机,关闭进程,创建进程等。2.使用时首先添加System.Management.dll,然后引用usingSystem.Management;usingSystem.Threading;3.示例代码3.1 html代码HTMLHEADtitleWMITest/titlemetaname="GENERATOR"Content="MicrosoftVisualStudio.N 阅读全文
posted @ 2007-03-19 22:48 leonardleonard 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 一、中文分词方式: 中文分词几种常用的方式:A. 单字分词单字分词,顾名思义,就是按照中文一个字一个字地进行分词。如:我们是中国人,效果:我\们\是\中\国\人。B. 二分法二分法,就是按两个字进行切分。如:我们是中国人,效果:我们\们是\是中\中国\国人。C. 词库分词词库分词,就是按某种算法构造词然后去匹配已建好的词库集合,如果匹配到就切分出来成为词语。通常词库分词被认为是最理想的中文分词算法如:我们是中国人,通成效果为:我们\是\中国\中国人。二、Lucene.net中五种中文分词效果探究在Lucene.net中有很多种分词器,不同分词器使用了不同的分词算法,有不同的分词效果,满足不同的 阅读全文
posted @ 2007-03-19 20:07 leonardleonard 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1.一个基本的示例通过该示例可以撑握以下内容:1) Gentle.net是怎么把对象(类)和关系数据库(SQL)关联起来的.2) 使用Gentle.net插入,更新,返回实例信息,和删除数据.本示例中以人为实例,包括人ID和姓名.附上建表脚本示例表代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ifexists(select*fromdbo.sysobjectswhereid=object_id(N'[dbo].[Peoples]')andOB 阅读全文
posted @ 2007-03-19 20:04 leonardleonard 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1.下载:下载信息页面: http://sf.net/projects/gopf 2.什么是数据持久层框架?数据持久层框架它就是处理应用程序中数据和数据介质的交互解决方案。它对ADO.NET进行进一步封装,使编码人员够更简单,更快的解决数据和数据存储介质交互的问题,而达到提高开发效率的目的。3.编译: 编译需要注意的是强名称和编译顺序问题。 1)强名称:由于密钥文件在每个项目的上个文件夹的Gentle.snk文件.所以,每个项目的AssemblyInfo.cs文件中添加以下信息即可: [assembly:AssemblyDelaySign( false )][assembly: Assembl 阅读全文
posted @ 2007-03-19 20:03 leonardleonard 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 107 下一页