Test with windows live writer

After some months, I decided that Microsoft Word maybe is not the best app to blog, so I come back to Window Live Writer, but now I had to choose the plugin to insert code. I have some old plugin for the beta version, this post is a try to understand if they works again well.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
        private void DoBind() {
            Int32 count = GetCount();
            String Query =
                PrepareQuery(CurrentOrder, AscendingOrder, MyGridView1.CustomPageIndex, MyGridView1.PageSize, count);
            using (SqlDataAdapter da = new SqlDataAdapter(Query, "server=localhost\\sql2000;Integrated Security=SSPI;Database=Northwind")) {
                DataSet ds = new DataSet();
                da.Fill(ds, "Customers");
                MyGridView1.RecordCount = count;
                MyGridView1.DataSource = ds.Tables[0].DefaultView;
                MyGridView1.DataBind();
            }
        }

This is a sample code.

image

This is a simple paste image

alk.