[Web]Javascript and Regular expression

20. January 2012
A useful article on Javascript Regular expression usagehttp://www.learn-javascript-tutorial.com/RegularExpressions.cfm --------------------------------- Getting Started Regular expressions are used to do sophisticated pattern matching, which can often be helpful in form validation. For example,... [More]

Web

[Web]C# and JSON

19. January 2012
  JQuery Parse JSON        var obj = $.parseJSON(data);   C# creates JSON string:        public static class JSONHelper     {         pu... [More]

Web

[ASPNET4]Problem Solved: CSS file cannot be accessed

15. November 2011
Every several weeks I was haunted by this annoying problem and waste my life for hours!!! This time, I am gonna file it down for future and also others. Symptom: Site.css file under "Styles" folder cannot be accessedAnd, page will be appeared like this: Even after the following code have been a... [More]

ASPNET

[Office365]Office365 will MAKE IT by doing the following 2 steps

11. November 2011
Step No.1: Microsoft should buy or setup a Domain Name Registration Company. With such a company, Microsoft can provide every Office365 customers a free domain name. Now the Office 365 setup process would be extremely simple: 1. Input a valid domain name2. Pay it. Ok, everything is done. Do... [More]

Office365

[PowerShell] PowerShell and Office 365

11. November 2011
Install and configure the Microsoft Online Services Module for Windows PowerShell 1. Check the requirement for your environment You need a Windows 7 or Windows Server 2008 R2 computer.You must have Windows PowerShell and the .NET Framework 3.5.1 installed. You must have the Microsoft Online Servic... [More]

PowerShell

[WF4]Rehost Designer With Visual Tracking

10. August 2011
This Designer is detailed explained in the last chapter of Book<Microsoft Windows Workflow Foundation 4.0 Cookbook>Download source code here: MyWF4Designer.zip (962.07 kb) Note:This sample I create for personl test only, and may keep changing in the future, since some dlls are borrowed fro... [More]

WF4

[WF4]Try Catch activity in code

18. July 2011
Use Try Catch activity in the pure C# way. First, Create a workflow with Try-Catch in pure C# code: using System; using System.Activities; using System.Activities.Statements; namespace ErrorHandling {     public class ErrorHandlingWorkflow... [More]

WF4

[ASPNET]ASPNET Miscellanea

6. June 2011
1. Query String. Client URL: http://localhost:8088/TableTopic/Post.aspx?id=12345678&name=andrewzhuServer Side: public partial class Post : System.Web.UI.Page {    protected void Page_Load(object sender, EventArgs e) ... [More]

ASPNET

[WF4]Hands On Lab: Introduction to Windows Workflow Foundation (WF4)

19. May 2011
Here is THE LINK: http://visualstudiogallery.msdn.microsoft.com/7fe6f504-a58d-456e-8f55-e64bddc81a41/ Description: Welcome to Windows Workflow Foundation 4 (WF) Microsoft's programming model, engine and tools for quickly building workflow-enabled applications. This release of WF in .NET Frame... [More]

WF4

[Javascript,Jquery]Javascript setTimeOut usage sample

18. May 2011
Javascript: <script type="text/javascript"> var c = 0; var t; var timerIsOn = 0; $(document).ready(function () { //other event... $("#testBtn").click(function () { document.getElementById('txt').value&nb... [More]

ASPNET