malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?

2012年11月15日

How to create custom html helper in Asp.net MVC 3 or 4

摘要: I will try to show you a basic feature of ASP.NET MVC, creating custom HTML Helpers. We can reduce the amount of logic in view pages (razor or asp.net –aspx- pages) by extracting logic code as method.HTML Helper methods are nothing more than methods that are returning string. If you want to write yo 阅读全文

posted @ 2012-11-15 23:52 malaikuangren 阅读(367) 评论(0) 推荐(0) 编辑
Asp.net routing vs Url rewriting

摘要: ASP.NET routing differs from URL rewriting. URL rewriting processes incoming requests by actually changing the URL before it sends the request to the Web page. For example, an application that uses URL rewriting might change a URL from/Products/Widgets/to/Products.aspx?id=4. Also, URL rewriting typi 阅读全文

posted @ 2012-11-15 20:40 malaikuangren 阅读(170) 评论(0) 推荐(0) 编辑
What if you encounter a problem when consume your WCF service ? How to Diagnostic it ?

摘要: The Answer is the Log Tracing the WCF .My service is:[OperationContract(Name="Add")][WebInvoke(UriTemplate = "test/", Method = "POST", ResponseFormat=WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json )]public int Add(Number n1){ res = Convert.ToInt32(n1.Number1 阅读全文

posted @ 2012-11-15 10:06 malaikuangren 阅读(341) 评论(0) 推荐(0) 编辑