Monthly Archives: September 2011

Office 2010: Freeze or lock rows and columns

Lock rows and columns by freezing panes
1. To lock rows, select the row below where you want the split to appear.
To lock columns, select the column to the right of where you want the split to appear.
To lock both rows and columns, click the cell below and to the right of where you want the split to appear.
2. On the View menu, click Freeze Panes.
3. To unlock rows, click Unfreeze Panes on the View menu.
ที่มา: Freeze or lock rows and columns

Download HTML source in C#

using System.Net;

//...
using (WebClient client = new WebClient ()) // WebClient class inherits IDisposable
{
    client.DownloadFile("http://yoursite.com/page.html", @"C:\localfile.html");

    // Or you can get the file content without saving it:
    string htmlCode = client.DownloadString("http://yoursite.com/page.html");
    //...

}

How can I download HTML source in C#

C# Code Snippet – Download HTML Web Page

WebClient Class