随笔分类 -  .Net

摘要:将ImageButton加到datalist中,并设置CommandArgument. ' ID="pDel"> 在datalist数据邦... 阅读全文
posted @ 2006-03-02 15:45 Ready! 阅读(479) 评论(0) 推荐(0) 编辑
摘要:private void DelImage(string pID) { //update xml System.Xml.XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(fileUrl); XmlNode node = xmlDoc.Selec... 阅读全文
posted @ 2006-03-02 15:34 Ready! 阅读(464) 评论(0) 推荐(0) 编辑
摘要:Dim w1(,) As Double = CType(oW1, Array) Dim cCount As Integer = w1.GetLength(1) Dim rCount As Integer = w1.GetLength(0) Dim sw As System.IO.Str... 阅读全文
posted @ 2006-02-24 12:54 Ready! 阅读(270) 评论(0) 推荐(0) 编辑
摘要:http://www-128.ibm.com/developerworks/cn/xml/x-sisoap/ 阅读全文
posted @ 2006-02-16 22:27 Ready! 阅读(199) 评论(0) 推荐(0) 编辑
摘要:“The solution appears to be under source control, but its binding information cannot be found. It is possible that the MSSCCPRJ.SCC file or another item that holds the source control settings for the ... 阅读全文
posted @ 2006-01-19 17:21 Ready! 阅读(1676) 评论(0) 推荐(0) 编辑
摘要:The project you are trying to open is a Web project. You need to open it by specifying its URL path. I got this by pulling down the source for my project from a previous labelled version in VSS. We ne... 阅读全文
posted @ 2006-01-18 16:28 Ready! 阅读(1037) 评论(0) 推荐(0) 编辑
摘要:on server side, Page.ProcessRequest method, Init -> LoadViewState -> LoadPostbackData -> Load -> LoadPostbackData ->RaisePostbackEvent ->SaveViewState -> Render. That's it.Specially, LoadPostbackData for these controls, 阅读全文
posted @ 2006-01-11 09:47 Ready! 阅读(1212) 评论(0) 推荐(0) 编辑
摘要:1> 打开窗口 一般, function showWindow(iWidth,iHeight,ctlID) { var features = "Width=" + iWidth + ","; features += "Height=" + iHeight + ","; features += "left=400,top=300,toolbar=no,help=no,me... 阅读全文
posted @ 2005-12-18 16:12 Ready! 阅读(392) 评论(0) 推荐(0) 编辑
摘要:在asp.net中,不要试图给Password类型的TextBox控件赋值! 无论是在设计或是运行时,都不可以的。猜测的原因是,password类型的TextBox控件从根本上,没有Text属性的Set方法,只有Get !!同样,html中的Input控件,如果设置为ruanat="server",password类型的Input控件也是一样。无论是在设计或是运行时,都不容许设置它的值。 阅读全文
posted @ 2005-12-13 14:19 Ready! 阅读(1158) 评论(2) 推荐(0) 编辑
摘要:今天为了做了一个可以自动适应高度的iframe, 用下面的js控制: alert(userinfo.document.body.scrollHeight);alert(userinfo.document.body.scrollWidth);document.all("userinfo").height = userinfo.document.body.scrollHeight; documen... 阅读全文
posted @ 2005-12-02 11:11 Ready! 阅读(1253) 评论(6) 推荐(0) 编辑
摘要:1> 创建ActiveX Dll项目,项目重命名为ExampleProject,类重命名为ExampleClass2> 创建方法:Option Explicit Public Function ExampleMethod(ByVal strName As String, ByVal iAge As Integer, Optional ByVal bAgeEmphasisOn As Boolean ... 阅读全文
posted @ 2005-11-15 15:58 Ready! 阅读(603) 评论(0) 推荐(0) 编辑
摘要:设计模式是面向对象编程的热门话题之一,越来越多的开发人员认识到设计模式的重要性。采用各种语言实现设计模式的文章也越来越多,但是很多开发人员发现很难将设计模式与实际开发中需要解决的具体问题相联系。因为使用设计模式的难点往往不在于模式的实现,而在于很难确定哪种模式可以在现实的应用场景中采用,从而导致了在现实的项目中,面对客户的压力,我们总是采用最直截了当的方法解决问题,来不及多考虑这些... 阅读全文
posted @ 2005-11-02 16:11 Ready! 阅读(426) 评论(1) 推荐(0) 编辑
摘要:using System;namespace ConsoleApplication1{ //用户界面(观察者1) public class SomeKindOfUI { public void Show(object anObject) { if (anObject is SomeData) { ... 阅读全文
posted @ 2005-11-01 17:08 Ready! 阅读(1265) 评论(4) 推荐(0) 编辑
摘要:Web services and SOAP are the preferred method invocation for remote objects:.They are firewall-friendly.Simple to create.Easy to access by other applications 阅读全文
posted @ 2005-11-01 11:14 Ready! 阅读(211) 评论(0) 推荐(0) 编辑
摘要:Microsoft .NET is 3 things:.Set of languages (C#, VB.NET, JavaScript, Managed C++, Others).Set of libraries organized in Namespaces.Runtime environment (Compiled to MSIL and JIT or NGEN) 阅读全文
posted @ 2005-11-01 10:57 Ready! 阅读(165) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/Files/silva/Observer.rar 阅读全文
posted @ 2005-11-01 10:40 Ready! 阅读(168) 评论(0) 推荐(0) 编辑
摘要:JS文件aa.js: document.writeln('测试'); ASPX文件里面这样写的: 但是页面内的“测试”可以显示出来,但是JS文件里面的“测试”则显示的乱码。 解决方法:配置 web.config 把 encoding 改为 gb2312 为什么改为gb2312就可以了呢?utf-8 不也是支持双字节字符的嘛?! 阅读全文
posted @ 2005-10-19 13:09 Ready! 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2005-10-18 13:02 Ready! 阅读(1195) 评论(0) 推荐(0) 编辑
摘要:1. .net发出客户端javascript //因为RegisterStartupScript是在 //Page 对象的 元素 //的结束标记之前发出该脚本; //而RegisterClientScriptBlock则是在 //Page 对象的 元素 //的开始标记后发出。2. 客户端javascript调用.net代码.很简单的. 阅读全文
posted @ 2005-10-18 12:59 Ready! 阅读(266) 评论(0) 推荐(0) 编辑
摘要:借鉴MSDN webcasts的Asp.net程序部署和李洪根的一篇文章,然后加上自己的亲身体会,把整个SQL和Asp.net(vb.net)一起打包的全过程写一下。一.准备必要的文件1. SQL脚本文件,生成以后安装过程中需要的表和存储过程等等;生成之后,就暂时把它命名为db.sql(注意大小写)2.LisenceFile.rtf的安装文件,因为我的系统是个人的,而且free的,所以就没... 阅读全文
posted @ 2005-10-11 16:58 Ready! 阅读(361) 评论(0) 推荐(0) 编辑