随笔 - 68  文章 - 2  评论 - 8 
  2008年5月9日
     摘要: Web客户端经常要跟踪用户访问的历史页面,如当当网当中的最近浏览的书籍,这样的数据一般保存在客户端的cookies中具体实现代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><scriptlanguage=javascript>funct... 阅读全文
posted @ 2008-05-09 13:52 萧佰刚 阅读(33) | 评论 (0)编辑
  2008年4月15日
     摘要: Jquery 之AJAX 无刷新下拉菜单<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headruna... 阅读全文
posted @ 2008-04-15 16:56 萧佰刚 阅读(119) | 评论 (0)编辑
  2008年4月3日
     摘要: Jquery xmlWebService 备忘笔记步骤一:从数据库返回XML成字符串#region步骤一:从数据库返回XML成字符串publicstaticstringGetXml(intparentId){IList<CategoryInfo>listCtgs=newCategory().GetCategories(parentId);stringxml="<Ctgs>"... 阅读全文
posted @ 2008-04-03 11:55 萧佰刚 阅读(194) | 评论 (2)编辑
  2008年3月26日
     摘要: 以下是一个ajax的post例子。代码为script部分jQuery之ajax post篇------CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><scripttype="text/javascript">functionadd... 阅读全文
posted @ 2008-03-26 17:01 萧佰刚 阅读(317) | 评论 (0)编辑
  2008年1月16日

坚决拖泥带水
                   -----萧佰刚

既然没有希望,
又何给人幻想,

痛要痛的彻底,
爱要爱的疯狂。

曾今的你,
我已早已遗忘.

不仅忘却,
蜘蛛式的情网,

而且祈祷,
快餐式的死亡,

如今的我,
还是那么狂妄,

不仅思念,
象牙式的乳房,

而且渴望,
自由式的解放,

我们知道,
在玩拖泥带水的谜藏,

捉弄的彼此遍体淋伤。


                                                 2008年1月16日

posted @ 2008-01-16 16:38 萧佰刚 阅读(142) | 评论 (0)编辑
  2008年1月9日
     摘要: 由于家住在五楼,晚上我的精品白沙烟抽完了.然而自己不想下楼去商店买,于是委托我的朋友去买.打算买10包.usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceBuyCigarette{classProgram{staticvoidMain(string[]args){Console.Write("请输入买烟的数量... 阅读全文
posted @ 2008-01-09 11:18 萧佰刚 阅读(32) | 评论 (0)编辑
  2008年1月4日
项目介绍:
   Client:客户端
   WebService:服务器端
   Common:通用压缩类
   DataSetSurrogate:通过Surrogate 进行数据集二进制序列化 
 
 

   
项目总结:    
     项目用到的WebService 压缩方法
     * 方法一:webmethod直接返回byte[]
     * 方法二:ICSharpCode 算法压缩(ICSharpCode.SharpZipLib.dll
     * 方法三:DataSetSurrogate返回 DataSetSurrogate 对象序列化并压缩
      (DataSetSurrogate.dll

项目下载:下 载   
posted @ 2008-01-04 13:15 萧佰刚 阅读(95) | 评论 (0)编辑
  2007年12月21日
posted @ 2007-12-21 10:44 萧佰刚 阅读(70) | 评论 (0)编辑
  2007年12月3日
     摘要: 使用HTTP-GET方式访问HTTP-GET方式访问#regionHTTP-GET方式访问privatevoidbutton1_Click(Objectsender,System.EventArgse){System.Net.HttpWebRequestReq;stringstrGet="http://localhost/HelloWord?name=";strGet=strGet+textBox... 阅读全文
posted @ 2007-12-03 00:05 萧佰刚 阅读(85) | 评论 (0)编辑
  2007年11月21日

启动更新程序执行文件

private void button2_Click(object sender, System.EventArgs e)
        
{
            
string updateAppPath = Common.AppStartPath + @"\AutoUpdate.exe";
            
if(!File.Exists(updateAppPath))
            
{
                MessageBox.Show(
"无法找到AutoUpdate应用程序!");
                
return;
            }

            
string argments = Process.GetCurrentProcess().Id.ToString();
            ProcessStartInfo startInfo 
= new ProcessStartInfo(updateAppPath, argments);
            Process updateApp 
= new Process();
            updateApp.StartInfo 
= startInfo;
            updateApp.Start();
        }


得到启动程序的所在的文件夹路径

private static string strAppPath = String.Empty;

        
/// <summary>
        
/// 系统启动路径
        
/// </summary>

        public static string AppStartPath
        
{
            
get
            
{
                
if (strAppPath == String.Empty)
                
{
                    strAppPath 
=
                        System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
                    System.Uri uriPath 
= new Uri(strAppPath);
                    strAppPath 
= uriPath.LocalPath.Replace('/''\\');

                }

                
return strAppPath;
            }

        }


    项目Domo下载:http://www.cnblogs.com/Files/xiaobaigang/test.rar




posted @ 2007-11-21 17:50 萧佰刚 阅读(27) | 评论 (0)编辑