03 2013 档案

杂记
摘要:1Question.htm页面以弹出窗口显示<tr><tdclass="loginQuestion"><ahref="javascript:window.showModalDialog('Question.htm','','dialogWidth:520px;dialogHeight:600px; dialogTop:'+(window.screen.availHeight-600)/2+';dialogLeft:'+(window.screen.availWidth - 阅读全文

posted @ 2013-03-23 21:57 Amity 阅读(165) 评论(0) 推荐(0)

后台反序列化前台传的JSON数据
摘要:using(varstream=Request.InputStream){ stringinputStream=newStreamReader(stream).ReadToEnd();JavaScriptSerializerjsSerializer=newJavaScriptSerializer();scheduleEventEntity=jsSerializer.Deserialize<ScheduleEventEntity>(inputStream);}foreach(PropertyDescriptordescriptorinTypeDescriptor.GetProper. 阅读全文

posted @ 2013-03-23 21:52 Amity 阅读(228) 评论(0) 推荐(0)

Ajax得到服务器生成的文件流,下载
摘要:前台: vardownloadFrame;functiondoHisRPTDownload() {varperiod=$("#"+"<%=MonthSelect.ClientID%>").val();// Check to be sure this async postback is actually requesting the file download.if(!downloadFrame) {downloadFrame=document.createElement("iframe");// Add the IFRAM 阅读全文

posted @ 2013-03-23 21:49 Amity 阅读(841) 评论(0) 推荐(0)

Windows身份认证,通过活动目录得到用户信息
摘要:1//获取到域名stringdomainName=HttpContext.Current.User.Identity.Name;UserManagermanager=newUserManager();EmpInfoempInfo=manager.GetUserInfo(domainName);2publicstringGetEmpId(stringdomainName){stringid=string.Empty;if(!string.IsNullOrEmpty(domainName)){string[]parts=domainName.Split(newstring[] {"\\& 阅读全文

posted @ 2013-03-23 21:44 Amity 阅读(321) 评论(0) 推荐(0)