您当前的位置:KKBlog > 学无止境 > ASP.NET

文件转换成base64 编码

/// <summary> /// 文件转换成base64 编码 /// </summary> private string file2Base64string(string str_file) { try { FileStream fstream = new FileStream(str_file, FileMode.Open); byte[] sourceBuffer = new byte[fs…
查看全文

webservice 测试窗体只能用于来自本地计算机的请求

Question:  WebService部署成站点之后,如果在本地测试webservice可以运行,在远程却显示“测试窗体只能用于来自本地计算机的请求”或者"The test form is only available for requests from the local machine. ",Reason:  那是因为没有开启远程访问的原因。Solutions:在web.config的<system.web><…
查看全文

Log4net配置(winform)

在.net 2.0 WinForm程序中配置log4net来记录日志(入门级) 参考网上现有资料,自己整理了步骤: 1.在WindowsApplication项目新增“应用程序配置文件”. 2.将一下内容Copy至“configuration”节点中 <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSection…
查看全文

ASP.NET WebService 中使用 ASP.NET_SessionId

今天在帮助同事解决对WebService进行 Web References 调用问题:当调用webservice第一个方法Method1发现服务端Set-Cookie: ASP.NET_SessionId=*****保存了ASP.NET的会话状态。接着当我再调用webservice的第二个方法Method2时发现无法正确返回服务器端处理结果也就是说webservices进行http post 的时无法正常响应服务端。感觉…
查看全文

C# 文字转语音DEMO

近突发奇想 想玩玩 文字转语音的东东 谷歌了一下 发现微软有一个TTS 的SDK 查了查相关资料 发现 还真不错 然后就开始玩玩Microsoft Speech SDK的 DEMO了 现在网上最新版好像是Microsoft Speech SDK Version 5.1 先下载下来下载地址是 http://www.52z.com/soft/22068.html要先安装第一个SDK 然后安装语言包 …
查看全文

.net 生成Rss

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.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Xml;using System.Data.SqlClient;publ…
查看全文

asp.net 导入文本文件数据到数据库

/// <summary> /// 创建并获取目录,主要用于用户文件上传的目录,目录创建在resources/upload下 /// </summary> /// <param name="customize">自定义类别可以是空NULL,此参数不为空时在upload下会再新建一层目录,如:adminPic则返回../resources/upload/adminPic/年/月/</param&…
查看全文

C#拼音首码和拼音全码的生成

从网上找到了如下的C#拼音首码和拼音全码的生成代码,记录一下,避免忘记。 #region 拼音编码 private static int[] pyValue = new int[] { -20319,-20317,-20304,-20295,-20292,-20283,-20265,-20257,-20242,-20230,-20051,-20036, -20032,-20026,-20002,-19990,-19986,-19982,-19976,-19805,-19784…
查看全文

使用metawebblog api 实现自己的博客接口

metawebblog api 是一个博客标准,这样我们就可以通过实现这个标准来实现 我们自己的博客支持word2007,windows liver writer来写博客. metablog的.net接口如下. using System;using System.Collections.Generic;using System.Text;using CookComputing.XmlRpc;namespace blog{ #region Structs public struct BlogInfo…
查看全文

metaweblog

/api/metaweblog/metawebloghandler.cs using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Web;using System.Web.Security;using System.Xml;using BlogEngine.Core; namespace BlogEngine.Core.API.MetaWeblog{ /// <summary> /// HTTP Handler for MetaWeblog …
查看全文
二维码
意见反馈 二维码