文章分类 -  C#

摘要:也是比较老的东西了最近用到 记录下以免以后忘了要下载图片首先要有图片地址要有图片地址就要先把网页下下来分析下URL下载网页一般用两种方法1,用 system.net.webclient2,用 System.Net.HttpWebRequest至于怎么找图片url略过,直接说下载图片吧其实和上面一样,也有两种方法:1,WebRequest和WebResponse2,WebClient 大体就这么多&... 阅读全文
posted @ 2010-07-06 18:41 小巩 阅读(1912) 评论(0) 推荐(0)
摘要:~/VisitorView.aspx 转成http://localhost:15982/Synair.New.Visitor/VisitorView.aspxpublic static string GetVirsualURL(string path{  path = path.Replace("~", "");  HttpRequest request = HttpContext.Current... 阅读全文
posted @ 2010-01-30 17:30 小巩 阅读(134) 评论(0) 推荐(0)
摘要:BigIntInt64。64 位的有符号整数。BinaryByte 类型的 Array。二进制数据的固定长度流,范围在 1 到 8,000 个字节之间。BitBoolean。无符号数值,可以是 0、1 或 nullNothingnullptrnull 引用(在 Visual Basic 中为 Nothing)。CharString。非 Unicode 字符的固定长度流,范围在 1 到 8,000 ... 阅读全文
posted @ 2009-10-15 08:40 小巩 阅读(793) 评论(0) 推荐(0)
摘要:public class MailSent { MailMessage m = new MailMessage(); SmtpClient sc = new SmtpClient(); public string Sent() { try { //发送方 m.From = new MailAddress("发送方Email", "名称", Encoding.UTF8); m.To.Add(new ... 阅读全文
posted @ 2009-10-15 08:35 小巩 阅读(166) 评论(0) 推荐(0)
摘要:~/VisitorView.aspx 转成http://localhost:15982/Synair.New.Visitor/VisitorView.aspxpublic static string GetVirsualURL(string path) { path = path.Replace("~", ""); HttpRequest request = HttpContext.Current... 阅读全文
posted @ 2009-10-15 08:26 小巩 阅读(102) 评论(0) 推荐(0)
摘要:public class MailSent { MailMessage m = new MailMessage(); SmtpClient sc = new SmtpClient(); public string Sent() { try { //发送方 m.From = new MailAddress("发送方Email", "名称", Encoding.UTF8); m.To.Add(new ... 阅读全文
posted @ 2009-07-04 10:38 小巩 阅读(190) 评论(0) 推荐(0)
摘要:public static void CreateMessageWithAttachment(string server){// Specify the file to be attached and sent.// This example assumes that a file named Data.xls exists in the// current working directory.s... 阅读全文
posted @ 2009-06-25 14:54 小巩 阅读(120) 评论(0) 推荐(0)
摘要:try { request = (HttpWebRequest)WebRequest.Create("http://221.130.185.108/smsmarketing/wwwroot/api/user_info/?uid=" + sUserID + "&pwd=" + sPW); //Post请求方式 request.Method = "GET"; //内容类型 request.Co... 阅读全文
posted @ 2009-06-25 14:47 小巩 阅读(245) 评论(0) 推荐(0)
摘要:try { request = (HttpWebRequest)WebRequest.Create("http://221.130.185.108/smsmarketing/wwwroot/api/post_send/"); //Post请求方式 request.Method = "POST"; //内容类型 request.ContentType = "application/x-www-for... 阅读全文
posted @ 2009-06-25 14:47 小巩 阅读(208) 评论(0) 推荐(0)
摘要:using System.Net.Sockets;using System.Collections;using System.IO;using System.Net;using System;using System.Web.Mail;public class POP3{ string POPServer; string user; string pwd; NetworkStream ns; St... 阅读全文
posted @ 2009-06-11 19:38 小巩 阅读(10676) 评论(4) 推荐(1)