Microsoft Shanghai No.1 ToasteMaster international contest

Toastormaster contest. 1. before start 2. Discussion before the contest. 3. People are happy 4. Still happy 5. Sharp, what are you thinking? 6.Our SAA, sherry Xiong 7.Before the table topic contest, nervous, nervous , nervous 8. Sarah, before the contest, nervous 9.Andrew, b... [More]

[DotNet].NET and C# fundamentals

1. Why and when to use Inheritance.     a. As a class user, we can create a new class inherited from parent's class. When we use an IDE such as Visual Studio, IDE will auto complete some code for us. - Relationship    b. As a class user, we can reuse other's already de... [More]

[ASP.NET]Show Menu Items For Different Roles

In an ASP.NET site, some time we want to show a menu item for administrator only. For example, we want to display "edit" link for blogger owner. Below are steps to take action to achieve this feature:1. Create a Web.sitemap file and add menu items to this file <?xml version="1.0" enco... [More]


This is a silverlight application that can take a photo via your computer's webcam and save photo to local disc.

[WF4]Should we delete sad:XamlDebuggerXmlReader.Filename attribute?

Opening a WF4 workflow in xaml editor. you can find that sad:XamlDebuggerXmlReader.Filename attribute point to a physical file path. What a mysterious physical path. Why do we need this attribute? this attribute is used for WF4 workflow debugging. VS debugger will find the break point code line in t... [More]

[WF4]Abandon or AbandonAndSuspend

When you host Workflow in IIS/Appfabric. You may have to set the unhandled exception behavior: <workflowUnhandledException action="AbandonAndSuspend" /> So, what is the difference between Abandon and AbandonAndSuspend. By default, WorkflowServceHost has the ability to resume persisted work... [More]

[WF4]Persistence Store Or Instance Store

  Persistence Store and Instance Store actually indicate the same thing.In WF3/3.5, the type is SqlWorkflowPersistenceService So, people usually call it Persistence Store. while in WF4 the type is: SqlWorkflowInstanceStore People call it Instance store. There are other differen... [More]

[ASPNET]Save TinyMCE Content

To save the content of TinyMCE in Ajax way. First, we need to execute the following code to dump the content to the textarea html control.; Then, get the text content: var text = $("#commentEditor").text(); Next, send data back to server:  ... [More]

[JQuery]Using JQuery Ajax

1. Loading JQuery and get it ready.    <script type="text/javascript" src="Scripts/jquery-1.4.1.js">   </script>   <script type="text/javascript">       $(document).ready(function ... [More]