随笔分类 - C#
c#
摘要:拿下载Android .apk 文件为例: 1、在IIS中添加好网站; 2、修改“MIME类型”,如图: 扩展名:.apk MIME类型:application/vnd. android 重新启动网站即可。
阅读全文
摘要:在你的Page_Load中添加这样的代码:Page.Response.Clear(); bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称", @"源文件路径", 1024000); if (!success) Response.Write("下载文件出错!");Page.Response.End();文件下载函数代码为:public static bool ResponseFile(HttpRequest _Request,HttpResponse _Re
阅读全文
posted @ 2013-03-19 10:14
edwin_sh
摘要:电话号码正则表达式(支持手机号码,3-4位区号,7-8位直播号码,1-4位分机号) ((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\...
阅读全文
摘要:在你的Page_Load中添加这样的代码:Page.Response.Clear(); bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称", @"源文件路径", 1024000); if (!success) Response.Write("下载文件出错!");Page.Response.End();文件下载函数代码为:public static bool ResponseFile(HttpRequest _Request,HttpResponse _Re
阅读全文
posted @ 2012-12-31 11:19
edwin_sh
摘要:手机号码和电话号码的正则表达式 ? 电话号码正则表达式(支持手机号码,3-4位区号,7-8位直播号码,1-4位分...
阅读全文
posted @ 2012-12-31 11:16
edwin_sh
摘要:问:如何获取单个商品的commission_num ? taobao.taobaoke.items.get 是可以获取的, taobao.taobaoke.items.detail.get 获取不到,没有这个字段, 应该通过哪个API 如何获取? 答:使用接口taobao.taobaoke.widg...
阅读全文
摘要:一个简单的例子,供大家参考。View Code public partial class Form1 : Form { public Form1() { InitializeComponent(); } private TreeNode NodeMouseOn = null; private void treeView1_ItemDrag(object sender, ItemDragEventArgs e) { ArrayList al = new Array...
阅读全文
摘要:在你的Page_Load中添加这样的代码: Page.Response.Clear(); bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称", @"源文件路径", 1024000); if (!success) Response.Write("下载文件出错!"); Page.Response.End();文件下载函数代码为:publicstaticbool ResponseFile(HttpRequest _Request,HttpResponse _Re
阅读全文

浙公网安备 33010602011771号