Monthly Archives: April 2011

Write a console simple program to find a list of repeated string in text file – sample

The program below is to find a string “Login.aspx” in a IIS log named “u_ex110418.log”.   using System.IO;   namespace ConAppIO {   class Program   {     static void Main(string[] args)     {       //Counter       int intCount = … Continue reading

Posted in .Net | Tagged | 1 Comment

Chat with Facebook users using Live Messenger

Click the small icon at the bottom of Live Messenger shows below.  

Posted in Computers and Internet | Tagged | 2 Comments

How to write a C# program to compile Java

Trust me. It is as simple as the code below.   class Program {   static void Main(string[] args)   {     System.Diagnostics.Process.Start(“Javac”, “D:\\VCSharpTemp\\Java\\SimpleCalculator.java”);   } }

Posted in .Net | Tagged | 5 Comments

Sample VSS Converter Settings File

The missing part of this link is the collection.   For example, the sample in this link is:   <?xml version=”1.0″ encoding=”utf-8″?> <SourceControlConverter> <ConverterSpecificSetting>      <Source name=”VSS”>           <VSSDatabase name=”c:\VSSDatabase”></VSSDatabase>           <UserMap name=”c:\Migrate\Usermap.xml”></UserMap>      </Source>      <ProjectMap>           <Project Source=”$/FolderA” … Continue reading

Posted in .Net | Tagged | 1 Comment

Disable all the date before today in Calendar control – ASP.NET

I have modified the code from How to Disable Selected Dates dynamically from the Calendar Control.   if (e.Day.Date < (System.DateTime.Now.AddDays(_nDaysToBlock))) {   e.Day.IsSelectable = false;   e.Cell.Font.Strikeout = true; }   To   if (e.Day.Date < (System.DateTime.Now.AddDays(-1)))//.AddDays(_nDaysToBlock))) {   … Continue reading

Posted in .Net | Tagged | 1 Comment

Navigate from one rdlc report to another filter through QueryString using ReportViewer – sample

1. I have a Webform named Default.aspx with a ReportViewer that is point to Report.rdlc.   2. I have another Webform named Default2.aspx with a ReportViewer that is point to Report2.rdlc.   Navigate from one rdlc report to another filter … Continue reading

Posted in .Net | Tagged | 1 Comment

Navigate from report to report in ASP.NET using URL and chart – sample

1. I have a Webform named Default.aspx with a ReportViewer that is point to Report1.rdlc.   2. I have another Webform named Report2Page.aspx with a ReportViewer that is point to Report2.rdlc.   For navigating form Default.aspx to Report2Page.aspx through Chart … Continue reading

Posted in .Net | Tagged | 2 Comments