上一页 1 ··· 7 8 9 10 11 12 下一页
javac main.java 2>err.txtjava main 0>in.txt 1<out.txt Read More
posted @ 2013-05-20 10:26 梦醒心晴 Views(110) Comments(0) Diggs(0)
SmtpClient client = new SmtpClient("smtp.163.com"); client.Credentials = new NetworkCredential("tongshuai2014@163.com","****"); MailAddress from = new MailAddress("tongshuai2014@163.com", "梦醒心晴", System.Text.Encoding.UTF8); MailAddress to = new MailA Read More
posted @ 2013-05-17 13:18 梦醒心晴 Views(141) Comments(2) Diggs(0)
组件下载地址http://pan.baidu.com/share/link?shareid=633982&uk=2837156445直接将组件添加到项目中去,修改js/ckfinder/config.ascx将check权限的函数 进行按需修改,return表示有上传权限但ckfinder是一个试用版,可能会有些问题 Read More
posted @ 2013-05-17 09:59 梦醒心晴 Views(142) Comments(0) Diggs(0)
目前没有使用 ckfinder首先下载http://pan.baidu.com/share/link?shareid=628000&uk=2837156445然后在使用ckeditor的页面ValidateRequest="false"在web.config的<system.web>节点下添加<httpRuntime requestValidationMode="2.0"/> Read More
posted @ 2013-05-16 17:33 梦醒心晴 Views(140) Comments(0) Diggs(0)
首先 需要下载DotNetZip的组件http://dotnetzip.codeplex.com/在项目中引入Ionic.Zip引入名字空间using System.Text;using Ionic.Zip;压缩public static void zipDir(string source,string target) { //source d:test //target d:/mytest.zip using (ZipFile zip = new ZipFile(Encoding.UTF8)) ... Read More
posted @ 2013-05-16 11:21 梦醒心晴 Views(187) Comments(0) Diggs(0)
using System.Security.Cryptography;using System.Text;string MD5(string data) { // This is one implementation of the abstract class MD5. Encoding ecd = Encoding.UTF8; byte[] bs = ecd.GetBytes(data); MD5 md5 = new MD5CryptoServiceProvider(); ... Read More
posted @ 2013-05-15 10:47 梦醒心晴 Views(160) Comments(0) Diggs(0)
界面代码<asp:Image ID="Image1" runat="server" ImageUrl="~/pic/def.gif" Width="85px" /> <br /> <asp:FileUpload ID="FileUpload1" runat="server" /> <br /> <asp:Button ID="Button5" runat="server" oncli Read More
posted @ 2013-05-14 15:13 梦醒心晴 Views(175) Comments(0) Diggs(0)
首先,新建一个一般处理程序Handler1.ashx 要注意的一点是,这个类要实现IRequiresSessionState接口using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;using System.Web.SessionState;namespace WebApplication3{ /// <summary> /// Handler1 的摘要说明 /// </summary> public class Hand Read More
posted @ 2013-05-14 10:51 梦醒心晴 Views(344) Comments(0) Diggs(0)
首先是下载安装mysqlhttp://dev.mysql.com/downloads/mirror.php?id=412535基本是一直next就可以了安装好之后,在visualstudio 项目中添加引用然后就可以实验了放一段代码 仅供参考 private MySqlConnection conn; protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArg... Read More
posted @ 2013-05-06 17:26 梦醒心晴 Views(202) Comments(0) Diggs(0)
class MyOnTouchListener implements OnTouchListener{ @Override public boolean onTouch(View arg0, MotionEvent event) { //上是 1 左是0下是2右是3 float x = event.getX() / v.getWidth(); float y = event.getY() / v.getHeight(); // Direction will be [0,1,2,3... Read More
posted @ 2013-04-15 17:32 梦醒心晴 Views(376) Comments(0) Diggs(0)
上一页 1 ··· 7 8 9 10 11 12 下一页