摘要:1、使用outLook提供的发送如:我见过的用友软件U8生产制造(演示版),其中的邮件功能就是通过调用outLook的ActiveX组件优点:开发简单缺点:依赖outlook组件,SMTP邮件服务邮件发送的代码如下:以下是引用片段:PrivateSubSend()DimoutObjAsNewOutlook.Application()DimItemAsOutlook.MailItemClassIte...
阅读全文
随笔分类 - .Net
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1[WebApplicaioninC#]2 SqlConnectionmyConnection=newSqlConnection("DataSource=localhost;InitialCatal...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1一般来说,用户离开系统的方式有三种:主动注销、会话超时、直接关闭浏览器,对于前两种,我们很容易便可将该用户从在线列表中清除,关键是第三种(很多用户都是直接关闭窗口的~~郁闷ing),程序无法捕获窗口关闭...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--在程序设计中,为了用户的体验,最后把程序出现的黄页错误归结到统一的页面上下面是我在程序代码中的错误页面设计:它由页面ErrorPage.aspx实现.HTML代码如下:<htmlxmlns="htt...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<%if(Session["username"]==null||Session["username"].ToString()==""){Response.Write("<scriptlangu...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--string[]stringSeparators=newstring[]{"\r\n"};//"\r\n"是txt文件中的回车换行string[]adviceWord=str.Split(stringSe...
阅读全文
摘要:<%#DataBinder.Eval(container.DataItem,"列名")%>
阅读全文
摘要:在Vs2003进行程序开发时,有时候在调试时会发现设置了断点,但是没有任何作用。当鼠标放在断点上是,会提示当前不会命中断点。还没有为该文档加载任何符号。 具体什么原因造成这个错误,暂时没有弄清楚。但是解决办法是:右击“解决方案”--》“配置管理器”--》新建“活动的解决方案配置”--》在“新建解决方案配置̶...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingS...
阅读全文
摘要:一定要写在Page_Load中,否则第一次点击时不会出现if(!IsPostBack){this.button1.this.Button2.Attributes.Add("onclick", "return confirm('确定要删除吗?');");}
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidTradeWordOrder_dg_ItemCreated(objectsender,DataGridItemEventArgse){LinkButtonlb;lb=(LinkB...
阅读全文
摘要:datagrid-》属性生成器-》列-》添加按钮列-》删除-》文本(T)->在文本框里加上:<div id="de" onclick="JavaScript:return confirm('确定删除吗?')">删除</div>
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--后置代码中的计算方法publicintFormatVoteCount(stringVOTE_NUMBER,stringVOTE_REMARK){if(VOTE_NUMBER.Length<=0||V...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privateDataSetCreateDataSource(){stringstrConn;strConn="Provider=Microsoft.Jet.OLEDB.4.0;"+"DataSource...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidButton1_Click(objectsender,EventArgse){TextBox2.Text=HtmlEncode(TextBox1.Text);}publicstr...
阅读全文
摘要:在保存某些多页面共用的变量的时候(如保存用户登陆信息),我们用得最多的就是Session和Cookies了,至于Session怎么使用这里就不说了,主要说说Session的清空。Contents.Remove("变量名"): 从Session.contents集合中删除指定的变量 Contents.Removeall() : 删除Session.contents集合中的所有变量 Abandon()...
阅读全文
摘要:一般的情况下,我们是使用./../ 这样的相对路径来确定和规划我们的资源(比如图片、资源文件),但这种方式下在我们部署应用的时候,可能会出错,另外对于.ascx的控件中如果包含了一个图片,而这个控件被我们在不同层次的两个目录的aspx文件分别引用时,问题就会出现了。~/image/about.bmp 是一种非常好的方法,它以Web应用程序的根目录为起始点,这样使得比你使用./image/about...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicstringrqcl(stringrqz){CultureInfoci=newCultureInfo("de-DE");stringsz=System.Convert.ToDateTime(r...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->private void BtnUpLoad_Click(object sender, System.EventArgs e) { string path=""; strin...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->下面是写cookie 1 HttpCookie cookie = new HttpCookie("Info");//定义cookie对象以及名为Info的项 2 DateTime dt = Da...
阅读全文

浙公网安备 33010602011771号