Mypath2us - mypath2us.com
General Information:
Latest News:
Regex Optimization 10 Jul 2010 | 01:41 am
Recently we encountered a huge performance issue in our HttpModule or Url Rewriter module. After a lot of tense and investigation, the issue is locked down at the way of using Regular Expression. In t...
Create Cross-Domain Cookie? 29 Jan 2010 | 08:50 am
Recently I've been challenged to create cookies under other domain which I do not have access to. I was poking around the internet and trying to find a solution for this. The most popular solution is ...
Include javascript to a customized component as web resource 23 Dec 2009 | 10:40 am
It's been a long time since I wrote last post .... The topic for this post is to introduce how to include javascript, images and css styles as web resource to a customized control. The motivation behi...
Work with RESTful service using LINQ to XML 11 Nov 2009 | 12:01 pm
Recently I've been working on a project that uses third party RESTful service a lot. The main response format of the service is XML, I found it is a big headache to parse the data using XmlDocument, s...
Silverlight interactive with database 3 Nov 2009 | 09:06 am
Due to security reason, Silverlight is not allowed to talk to database directly. There are multiple ways of doing this, here I only listed 3 ways for an silverlight gadget or application to talk to da...
美国的纸巾种类 27 Oct 2009 | 02:45 am
在美国生活过一段时间后, 发现美国的纸巾种类分的比较细, 国内常见的筒状如图, 在这里是叫bath tissue, 顾名思义是用于如厕的啦, 所以每次有美国朋友到家里做客的时候, 我都比较小心, 不让这类纸巾出现在厅里, 更不会递这类纸巾给他们擦嘴啦. 说到擦嘴, 如果是吃饭的时候用的, 有专门的叫Napkin的方形纸巾,如图 展开来比较会大, 用餐的时候也可以摊在腿上, 避免食物弄脏衣服.....
RadComboBox AutoComplete Hightlight Keyword? 25 Oct 2009 | 03:45 am
RadComboBox is a good control to use for auto-suggestion/type-head/auto-complete, the only thing is when using webservice to get the item, the client template is pre-defined and can not be customized....
Batch Job in a webpage? 20 Oct 2009 | 05:14 am
By looking at the title, some people will simply say "Uhhh..why you want to do batch jobs in a web page?". However, sometimes you may need to do that due to environment limitation or whatever reason. ...
Get Client Geo Location in C# 19 Oct 2009 | 11:32 am
There are two things to do in order to get the Geo location of a request client. 1, Get the IP address of the request using below code... string strClientIP = Request.ServerVariables["REMOTE_ADDR"]...
Cache a page conditonally 17 Oct 2009 | 10:59 am
Cache is one of the ways to improve site performance, one most used caching policy is page level cache. In .NET, we will use below directive in the page to cache the whole page(10 minutes as example)....