摘要: string path1 = @"D:/" + faxFileName; FileStream writeer = new FileStream(path1, FileMode.OpenOrCreate); BinaryWriter bw = new BinaryWriter(writeer); bw.Write(faxFile); bw.Close(); writeer.Close(); 阅读全文
posted @ 2012-02-29 10:08 jamsewang 阅读(631) 评论(0) 推荐(0) 编辑
摘要: //打开流程处理窗口function OpenTaskProcessWindow(url, title) { var d = new Date(); var timeStamp = d.getTime(); url = url + "&time=" + timeStamp; window.open(url, title.replace(/-/g,"").replace(/_/g,""), 'height=600, width=1024, top=50, left=100, toolbar=no, menubar=no, 阅读全文
posted @ 2012-01-31 14:13 jamsewang 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lhb25/archive/2010/12/26/1917047.htmlhttp://www.williamlong.info/archives/1291.html 阅读全文
posted @ 2011-12-15 16:55 jamsewang 阅读(163) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lhb25/archive/2011/05/31/2056103.html 阅读全文
posted @ 2011-12-15 16:54 jamsewang 阅读(118) 评论(0) 推荐(0) 编辑
摘要: <script language"javascript"> var currentpos,timer; function initialize() { timer=setInterval("scrollwindow()",10); } function sc(){ clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos != docume 阅读全文
posted @ 2011-12-06 12:46 jamsewang 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1.document.write(""); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value)6.一个小写转大写的JS: document.getElementById("output"). 阅读全文
posted @ 2011-12-06 12:13 jamsewang 阅读(260) 评论(0) 推荐(0) 编辑
摘要: //UpdatePanel里面弹出对话框ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "click", "alert('表单提交成功!');", true);//UpdatePanel里面调用父窗口方法ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "window.parent.opener.doClientSearch();" 阅读全文
posted @ 2011-11-18 15:24 jamsewang 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 前台:<asp:GridView ID="gvUserList" runat="server" CellPadding="0" BorderWidth="1px" SkinID="gvSkin" Width="100%" BorderStyle="Solid" BorderColor="#7A97BF" EmptyDataText="目前尚未配置人员" AutoGenerateColumns="Fal 阅读全文
posted @ 2011-11-16 09:07 jamsewang 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 代码动态添加css文件的引用 HtmlGenericControl myCss = new HtmlGenericControl(); myCss.TagName = "link"; myCss.Attributes.Add("type", "text/css"); myCss.Attributes.Add("rel", "stylesheet"); myCss.Attributes.Add("href", ResolveUrl(Page.ResolveClientUrl(& 阅读全文
posted @ 2011-11-11 10:56 jamsewang 阅读(914) 评论(0) 推荐(0) 编辑
摘要: LdapAuthentication.cs:using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.DirectoryServices;using System.Text;// 阅读全文
posted @ 2011-11-03 14:59 jamsewang 阅读(2665) 评论(0) 推荐(0) 编辑