2008年5月8日

     摘要: session 和Cookie有什么关系.为什么要添加cookie的判断才会准确? string strCookieHeader =HttpContext.Current.Request.Headers["Cookie"]; if (null != strCookieHeader && strCookieHeader.IndexOf("ASP.NET_SessionId") >= 0) 是干吗的?  阅读全文
posted @ 2008-08-05 11:21 Solog 阅读(157) | 评论 (0)编辑
     摘要: 个人学习用,无他意,COPY走的人也不要有他意使用工具:Fiddler参考文件:http://www.ibm.com/developerworks/cn/java/fileup/CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/*Author:... 阅读全文
posted @ 2008-07-31 18:11 Solog 阅读(89) | 评论 (1)编辑
     摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Text.RegularExpressions;usingSystem.Threading;usingSystem.Data.SQLite;usingSystem.Data;namespaceImps.Client.Pc{publicclassSQLiteH... 阅读全文
posted @ 2008-07-10 16:58 Solog 阅读(165) | 评论 (1)编辑

接上篇:飞信机器人FXRobot

添加了一个天气预报的插件:
使用方法:[tq]城市名/区号/拼音

效果图:

o_weather.jpg



本想再添些 公交查询,火车列表啥的,感觉原理都一样,没啥意思。不弄了。
重新编译了DLL

下载:
http://www.cnblogs.com/Files/solo/compile_dll.rar

使用方法:
一、备份X:\Program Files\China Mobile\Fetion 下面的FetionFx.exe.
把fxrobot_compile_dll.rar里的文件Copy进去.OK了。

posted @ 2008-07-10 15:46 Solog 阅读(220) | 评论 (2)编辑
     摘要: FXRobot功能:
用飞信或手机客户端发送信息让PC客户端执行你所添加的插件支持的命令,可以定时执行插件里的命令。实现远程,定时执行PC里的程序。如果点击关闭机器人,那么它就是一个普通的飞信。
目前可以执行的命令有:
一.如 "[cmd]ipconfig,[cmd]shutdown -s"等这类的开始->运行里的命令行
二:如"[fy]test,[fy]测试" 英汉互译。  阅读全文
posted @ 2008-07-08 11:28 Solog 阅读(670) | 评论 (9)编辑



VS配色效果如上图,VS2008的配色方案是ScottGu的,VS2005的是我根据那2008方案调出来的。(VS2008的配色方案MS不能导入VS2005)

养眼吧。

已更新,可以下载了
Download here
posted @ 2008-06-24 16:53 Solog 阅读(491) | 评论 (8)编辑
分页时

    <% if (ViewData.Accounts.IsPreviousPage) { %>
        
<%=Html.ActionLink<SpeakOutFreely.Controllers.ManageController>(c => c.List(ViewData.Accounts.PageIndex - 1), "Previous")%>
    
<% } %>

    
<% if (ViewData.Accounts.IsNextPage) { %>
        
<%=Html.ActionLink<SpeakOutFreely.Controllers.ManageController>(c => c.List(ViewData.Accounts.PageIndex + 1), "Next")%>
    
<% } %>    
第一次点下一页(Next)生成的HTML
http://localhost:64701/Manage/List/1
再点一次下一页(Next)
生成的URL
http://localhost:64701/Manage/List/1/2
应当是
http://localhost:64701/Manage/List/2 才对!
,直接The resource cannot be found. 了...

搜了下。
http://www.getknow.taniocha.org/autor-53-1.html
[quote]
Bug 1
If I create a controller action as follows...public void List(int category)... and use the MVCToolkit HtmlHelper.ActionLink<T> as follows...<%= Html.ActionLink<ProductController>( x => x.List(Category), "View Products for this category" ) %>... it generates the URL
http://server/Product/List/1 instead of http://server/Product/List/?category=1 and when i browse to the URL it says "A value is required for parameter 'category' in action 'List'"[this is due to LinkExtensions.BuildQueryStringFromBLOCKED EXPRESSION always assuming the first parameter should be simply appended to the url]
 Bug 2 If I create a controller action as follows...public void View(int Id)... and use the MVCToolkit HtmlHelper.ActionLink<T> as follows...<%= Html.ActionLink<ProductController>( x => x.View(ProductId), "View Product" ) %>... it correctly generates the URL
http://server/Product/View/1. However, when you navigate to that URL the same link now becomes http://server/Product/View/1/1. [this is because, in LinkExtensions.BuildUrl(), the call to UrlHelper.Action() parses the current URL and includes any current values (like Id) if it's a call to the same action. So maybe this is a bug with the way UrlHelper.Action works?? ]
[/quote]


只能这样写了..郁闷...
 <href="/Manage/List/<%= ViewData.Accounts.PageIndex-1 %>"">上一页</a>
  
<href="/Manage/List/<%= ViewData.Accounts.PageIndex+1 %>"">下一页</a>
posted @ 2008-05-08 10:17 Solog 阅读(203) | 评论 (1)编辑

导航

公告


MSN:solog(at)live.com

QQ:89208242
<2008年5月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

统计

与我联系

搜索

 

常用链接

留言簿(5)

我参加的小组

我参与的团队

我的标签

随笔分类

随笔档案

文章分类

相册

收藏夹

Links

solo's Friend's

其它小巢

最新随笔

最新评论

阅读排行榜

评论排行榜

60天内阅读排行