随笔分类 - ASP.NET
摘要:直接上代码,关键点: 133行的敏感词过滤 176行的6位扩展码写入 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI;
阅读全文
摘要:项目需要将音视频文件上传服务器,考虑并发要求高,通过七牛来实现。做了一个简易的压力测试,同时上传多个文件,七牛自己应该有队列处理并发请求,我无论同时提交多少个文件,七牛是批量一个个排队处理了。一个1.5MB的文件,上传时间大概2-3秒,感觉不错。直接上代码using Qiniu.IO;using Q...
阅读全文
摘要:最近有个在线招聘录音的开发需求,需要在招聘网站上让招聘者上传录音和视频。找到两个不错的javascript开源,可以在除了IE以外的浏览器运行。https://github.com/mattdiamond/Recorderjshttps://github.com/muaz-khan/RecordRT...
阅读全文
摘要:在网上找了很多,都只能生成网址,不能生成名片二维码,于是自己动手。第一步,写视图界面,主要代码如下: 名片二维码工具 名片二维码信息 姓...
阅读全文
摘要:因为jira的文本编辑器自动进行了2次转义,如果从API过来的文本换行需要手动处理。吐血。net里: desc = desc.Replace("\n", "\\n").Replace("\r", "\\r").Replace("\"","\\\""); java里: d...
阅读全文
摘要:参数 用法介绍 behavior=scroll, slide, alternate 跑马方式:循环绕行,只跑一次就停住,来回往复运动 direction=left,right 跑马方向:从左向右,从右向左 loop=100 跑马次数:循环100次,如不写默认为一直循环 width=100%,height=200 跑马范围:宽为100%,高为200像素 scrollamount=20 ...
阅读全文
摘要:Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路
阅读全文
摘要:我查阅SDK文档,发现有两种方法 第一种方法: XmlFormView.XmlForm.ViewInfos.SwitchView("FirstView"); 第二种方法: XmlFormView.XmlForm.ViewInfos.Initial = XmlFormVie...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Flyweight { public partial class _Default : Sys...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; us...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SilverlightInterview.Web { public class Note { public Note() { } public string ID...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace SilverlightInterview.Web { /// /// StockService 的摘要说明 /// [W...
阅读全文
摘要:编写WCF服务接口 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace SilverlightApplication11.We...
阅读全文
摘要:在向特定 URI 发送 HTTP 请求时,基于 HTTP 的服务将返回数据。 HTTP 请求可以发送至各种 URI。此类 URI 包括 http://YouURL.com/service/getUser、http://YouURL.com/service.svc/getUser 等,甚至包括静态数据,例如 http://YouURL.com/data.xml。配置 HTTP 请求通常使用表示...
阅读全文
摘要:using System; using System.Web; using System.Diagnostics; namespace HDI { public class HTTPFilter : IHttpModule { System.IO.StreamWriter fileWriter; HttpApplication applicationContext; ...
阅读全文
摘要: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...
阅读全文
摘要:public void GreateMiniImage(string oldpath, string newpath, int tWidth, int tHeight) { try { System.Drawing.Image image = System.Drawing.Image.FromFile(...
阅读全文
摘要:using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System...
阅读全文