12 2013 档案

摘要:json字符串从从后台传递到前台的方法有两种1.使用context.Response();2.使用webmethod 方法调用静态函数 返回的字符串前者返回的json是obj类型,而后者返回的是json字符串的类型,所以二者在前台的ajax的处理方式不同的。引用了一下比人写好的例子1,使用普通的aspx页面来处理前段的方法,如果使用ashx还可以添加固定的函数,在url处如“Test.ashx/testfucntion”$.ajax({ type: "post", ... 阅读全文
posted @ 2013-12-22 16:16 KeithMorning 阅读(292) 评论(0) 推荐(0)
摘要:foreach (Control var in panel.Controls) {if (var is Billet) {panel.Controls.Remove(var);var.Dispose();}}做一个C#动画时候,动态创建的一些picturebox需要刷新,清除后重新显示,billet为继承的picturebox类,这样做的好处是把要清除的归为一个类,只进行删除即可 阅读全文
posted @ 2013-12-10 11:49 KeithMorning 阅读(1913) 评论(0) 推荐(0)
摘要:using System;using System.Security.Cryptography;using System.Text;class Example{ // Hash an input string and return the hash as // a 32 character hexadecimal string. static string getMd5Hash(string input) { // Create a new instance of the MD5CryptoServiceProvider object. MD... 阅读全文
posted @ 2013-12-02 10:30 KeithMorning 阅读(3480) 评论(0) 推荐(0)