今年夏天

随便写写,我的网络生活.

  DonewsBlog  |  Donews首页  |  Donews社区  |  Donews邮箱  |  我的首页  |  联系作者  |  聚合   |  登录
  249篇文章 :: 3篇收藏:: 239篇评论:: 28个Trackbacks

公告

[收藏]365Key|和讯网摘|博采|VIVI|狐摘

Bloglines订阅 Newsgator订阅 My Msn订阅 My Yahoo订阅 Rojo订阅 gougou订阅 周博通订阅 博阅订阅 Rsshow订阅 Google Reader

文章

收藏

相册

技术

相关参考

友情链接

存档


正在读取评论……


Dot Net

<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\Documents and Settings\wwang\My Documents\Visual Studio Projects\ModelTransform\Log.txt" />
<add name="secondListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\Documents and Settings\wwang\My Documents\Visual Studio Projects\ModelTransform\Log2.txt" />
</listeners>
</trace>
</system.diagnostics>


    摘要:同事告诉我的,用Insert Into插入表中,再利用。另外一个办法他说复杂,我就没有听,呵呵。 好像是系统函数。    (全文共57字)——点击此处阅读全文

原文:http://virtualkarma.blogspot.com/2006/01/30-second-tutorial-post-to-blogger.html
This is a short tutorial that will teach you how to post to a blogger account from your .Net application. The code is in Visual basic.

Sept 1: Use Atomizer

Get Atomizer. Drop Atomizer.dll in the bin folder of your application.

Step 2: Create the Atom instance

atomEndPoint = "https://www.blogger.com/atom/"

generator = New generatorType
generator.url = "http://www.newster.net"
generator.Value = "NewsterToolSample"
generator.version = "1.0"

Dim Atom As Atom
Atom = Atom.Create(New Uri(atomEndPoint), generator, "username", "password")

step 3: Get the services from the Atom instance

Dim services As Array
services = Atom.GetServices()

Dim postURL As New String("")
postURL = service.postURL

Step 4: Post

Atom.PostBlogEntry(postURL, " Title of your article ", "body of your article", "")

Thats it.

Here is a working example and here is the source code for the working example.

I have used the above technique in the first version of Newster.net. For those of you who are not familiar with Newster.net, it’s a news aggregating application. I had shared hosting with Brinkster and it worked just fine. Just drop the Atomizer dll in the bin folder and use the above code.

本来还想到SourceForge上看看那几个HtmlEditor用在自己的代码中,今天无意中看到了这个编辑器:LionSky.NET WebHtmlEditor。同样也是开源的,并且是国内的作者,所以在使用上应该更贴心吧。有时间要研究一下了。下面是它的截图,类似Word风格。 参考链接

查看原图
作者的网站:http://www.lionsky.net/
作者的Blog:http://www.cnblogs.com/lion.net

blogger.com又不可以方问了,呵呵,所以还是用Donews.com来玩了。


原文: Visual Studio Add-Ins Every Developer Should Download Now

  • NUnit to write unit tests
  • NDoc to create code documentation
  • NAnt to build your solutions
  • CodeSmith to generate code
  • FxCop to police your code
  • Snippet Compiler to compile small bits of code
  • Two different switcher tools, the ASP.NET Version Switcher and the Visual Studio .NET
  • Project Converter
  • Regulator to build regular expressions
  • .NET Reflector to examine assemblies

参考:Ten Must-Have Tools Every Developer Should Download Now


好像有了B/S的软件架构方式后,C/S架构的软件就渐渐的消失在大众的视线。其实,Windows桌面程序还是很重要的,Web比较适合信息的流览,而Windos Form更时候大批量数据的采集,比如说Excel这样的软件就很困难被Web模式替代。

.NET也好像比较重视Web的开发,所以Windows Form的技术支持和开发文献就略显薄弱,控件DataGrid,使用起来只能是和数据集合进行绑定,编程可控性很低。但是还没有什么其他的Grid控件来替代它,很无奈。

还好这种情况在2005中有很大的改观,一种新的控件DataGridView出现了,提供了很多方法、属性和事件,通过程序来控制Grid。

基本数据绑定基本数据绑定
美化 DataGridView美化 DataGridView
使用 DataGridView 选择单元格使用 DataGridView 选择单元格
DataGridView 对象DataGridView 对象
DataGridView 样式DataGridView 样式
自定义单元格格式自定义单元格格式
按钮列按钮列
图像列图像列
编辑 DataGridView编辑 DataGridView
处理错误处理错误
验证输入验证输入
使用列表列约束选择使用列表列约束选择

Column的形式方面,基本的就是文本输入形式(DataGridViewTextboxColumn),还有Checkbox、图片、按钮等输入方式。同时还提供模板Template形式的Column自定义,虽然原来的Grid也可以自定义,但稳定性极差。关于自定义Column 的参考文献如下:

MSDN Magezine介绍关于DatagridView的一些常用的用法

Custom DataGridViewColumns: una classe DataGridViewColumn che espone un controllo UpDown

Calendar Column


How to use HttpWebRequest to send POST request to another web server?

http://www.netomatix.com/HttpPostData.aspx

Programmatically Posting Data to ASP .NET Web Applications [more details]

http://dotnet.sys-con.com/read/45127.htm

POST data to outside Website

http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=299729

Web Extraction and Submission toolkit (Library and tool)

http://www.codeproject.com/useritems/webex.asp?print=true

Send data from non browser client (using HttpWebRequest) that can be used by access web page controls.


今天发现一个英文博客Net Adventures ,是关于.NET方面的,博客中没有什么废话,很多都是很有用的小工具。例如:LibCheck,检查不同类库版本之间的区别。Object/Relation Mappers and Code Generators,喜欢的就自己去看吧。另外一个英文博客:http://www.codinghorror.com/blog/

下面也把我订阅的.NET 技术博客罗列一下,尽管都没什么时间去读,但都订阅到本地了。

MSDN Blog (RSS) 是微软的员工、技术人员的博客。(英文)

MSDN网站的,MSDN网站更新的RSS。(英文)

MSDN中文版RSS

CSDN的MSDN杂志精选

ASP.NETRSS,其中部分是和MSDN Blog重复的。

博客堂,中国MVP的博客,RSS

博客园,这里的博客好多啊,RSS也很多,隆重推荐,自己去看啊,呵呵


以前一直没有注意这个问题,就是自己写的ASP.NET服务器控件,即Web Custom Control。将控件拖动到页面上会有如下的标记:

 <cc1:ExListBox ID="ExListBox1" Runat="server"> </cc1:ExListBox>

在页面的页头也有这样的语法标识

<%@ Register tagprefix="cc1"   Namespace="namespace"   Assembly="assembly" %>

如果将这里的cc1修改为理想的TagName,那以后再拖动对应的Namespace下的控件,就均以TagName开始了。

但是,也许在Web Control 的代码中进行设置,应该就不会这么麻烦吧,还再来页面修改。 那就是需要使用TagPrefix属性(Attribute)。如下所示:

[assembly:TagPrefix("CustomControls", "custom")]
namespace CustomControls
{
 // Simple custom control
 public class ExListBox: Control
 {
//....
}

CustomControls是指命名空间,custom指希望使用的TagName

参考: MSDN  TagPrefix property

链接:http://www.ftponline.com/vsm/2003_08/magazine/columns/aspnet/


Web Browser Express:http://www.microsoft.com/china/msdn/library/langtool/vcsharp/OvervwWebBrowExp.mspx

Google Code:http://code.google.com/

OpenSQLTrace:自动跟踪处理和分析系统:http://www.microsoft.com/china/msdn/library/data/sqlserver/dnsqlpro04sp04k12.mspx

MSDN在线技术讲座:http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/archive.aspx

数据访问技术路线图:http://www.microsoft.com/china/MSDN/library/data/dataAccess/mdacroadmap.mspx

通过在托管代码中创建智能标记来实现 Office 2003 的潜力:http://www.microsoft.com/china/msdn/library/office/office/ManagedSmartTags.mspx

通过七个关键编程技巧得益于静态内容:http://www.microsoft.com/china/MSDN/library/enterprisedevelopment/softwaredev/us0501StaticsinNET.mspx


第1页,共6页