Author Archives: WUDI

WCF – Ajax Calling WCF Services

This is will demo a simple example on how Ajax calling WCF Services. see what does it look like? 1. define service data contract 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 … Continue reading

Posted in WCF | Comments Off on WCF – Ajax Calling WCF Services

Pet Shop 4.0 – SqlCacheDependency

Pet Shop uses SqlCacheDependency to syn with Database Table. On all supported versions of SQL Server (Microsoft SQL Server 7.0, Microsoft SQL Server 2000, and SQL Server 2005) the SqlCacheDependency class monitors a specific SQL Server database table. When the … Continue reading

Posted in PetShop4.0 | Comments Off on Pet Shop 4.0 – SqlCacheDependency

Pet Shop 4.0 – Encrypt WebConfig section and Decrypt WebConfig Section “ConnectionString”

As we know, ConnectionString contains User Name and Password. for security reason, Connection String needed to be Encrypted. Here is sample code in Pet Shop. EncryptWebConfig.bat @echo off C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef “connectionStrings” “C:\Program Files\Microsoft\.NET Pet Shop 4.0\Web” PAUSE DecryptWebConfig.bat @echo off … Continue reading

Posted in Uncategorized | Comments Off on Pet Shop 4.0 – Encrypt WebConfig section and Decrypt WebConfig Section “ConnectionString”

dbml and xsd

Two example will put here to demonstrate following question 1. how dbml visit database 2. how to update dbml is new columns are added 3. dbml updated when tables are deleted or updated.

Posted in Uncategorized | Comments Off on dbml and xsd

pet shop 4.0 – source code analysis

pet shop 4.0 is very classic important example. It is available under following url. http://www.microsoft.com/en-au/download/details.aspx?id=16693 More details will put here to analysis it.

Posted in Uncategorized | Comments Off on pet shop 4.0 – source code analysis

Asp.net OutputCache Example

Output Cache Will determine when page will refresh the following example shows that date time will be updated every 10 seconds, if client keeps on pressing F5 to refresh 1 2 3 4 5 6 7 8 9 10 11 … Continue reading

Posted in Uncategorized | Comments Off on Asp.net OutputCache Example