Christian Michael, Jayson’s brother is

ChristionMichael Christian Michael, Jayson’s brother is a real charmer. Yesterday, he walked Grandma out to her car and insisted they go for a ride. Now Christian can’t really talk yet but he was insistent that Grandma get in the car with him. You got to wonder what is going through that little mind.
jaysonronald Jayson has started school. He is in Kindergarten. Where has the time gone? Seems like only yesterday that he was this cute little baby. Now he is a big boy. Every day he amazes me with his growth both in physical size and understanding of the world around him. If you listen he really has some interesting insights. Our current big interest besides swimming is playing Halo on our Xbox. We are on the last level and looking forward to Halo 2.

The following example code details

The following example code details how to use the .NET datagrid edit features with a dropdownlist.

<%@ Page language=”c#” Codebehind=”WebForm1.aspx.cs” AutoEventWireup=”false” Inherits=”eform.WebForm1″ %>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content=”Microsoft Visual Studio .NET 7.1″ name=”GENERATOR”>
<meta content=”C#” name=”CODE_LANGUAGE”>
<meta content=”JavaScript” name=”vs_defaultClientScript”>
<meta content=”https://schemas.microsoft.com/intellisense/ie5&#8243; name=”vs_targetSchema”>
</HEAD>
<body>
<form id=”Form1″ method=”post” runat=”server”>
<TABLE id=”Table1″ cellSpacing=”1″ cellPadding=”1″ width=”300″ border=”1″>
<TR>
<TD>
<asp:Label id=”Label1″ runat=”server”>Label</asp:Label></TD>
</TR>
<TR>
<TD><asp:datagrid id=”DataGrid1″ runat=”server” OnUpdateCommand=”DataGrid_Update” OnCancelCommand=”DataGrid_Cancel” OnEditCommand=”DataGrid_Edit” AutoGenerateColumns=”False”>
<Columns>
<asp:BoundColumn HeaderText=”Employee ID” DataField=”emp_id” ReadOnly=”True” ItemStyle-Width=150 HeaderStyle-Wrap=False ItemStyle-Wrap=”False” />
<asp:BoundColumn HeaderText=”Last Name” DataField=”lname” ItemStyle-Width=200 HeaderStyle-Wrap=False ItemStyle-Wrap=”False” />
<asp:BoundColumn HeaderText=”First Name” DataField=”fname” ItemStyle-Width=200 HeaderStyle-Wrap=False ItemStyle-Wrap=”False” />
<asp:TemplateColumn HeaderText=”Job Title” HeaderStyle-Wrap=False ItemStyle-Width=200 ItemStyle-Wrap=”False”>
<ItemTemplate>
<asp:Label ID=”JobTitle” Runat=”server” Text='<%# DataBinder.Eval(Container.DataItem, “job_desc”) %>’ />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID=”ddlJobTitle” Runat=”server” DataSource=”<%# GetJobDataTable() %>” DataTextField=”job_desc” DataValueField=”job_id” />
</EditItemTemplate>
</asp:TemplateColumn>
<asp:EditCommandColumn ButtonType=”LinkButton” CancelText=”Cancel” EditText=”Edit” UpdateText=”Save” />
</Columns>
</asp:datagrid></TD>
</TR>
<TR>
<TD></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>

using System;
using System.Collections;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Microsoft.ApplicationBlocks.Data;

namespace eform
{
///

/// Summary description for WebForm1.
///

public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.DataGrid DataGrid1;

private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
GetData();
BindData();
}
}

private void GetData()
{
string ConnString = ConfigurationSettings.AppSettings[“PUBSCONNSTRING”];
DataSet ds = SqlHelper.ExecuteDataset(ConnString,”pr_GetEmployees”);
Session[“EmployeeDataTable”] = ds.Tables[0];
Session[“JobsDataTable”]= ds.Tables[1];
}

private void BindData()
{
DataTable dt = (DataTable) Session[“EmployeeDataTable”];
DataGrid1.DataSource = dt;
DataGrid1.DataBind();
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

///

/// Required method for Designer support – do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.DataGrid1.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid_ItemDataBound);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

protected void DataGrid_Cancel(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = -1;
BindData();
}

protected void DataGrid_Delete(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{

}

protected void DataGrid_Edit(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = e.Item.ItemIndex;
BindData();
}

protected void DataGrid_Update(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
string ConnString = ConfigurationSettings.AppSettings[“PUBSCONNSTRING”];

string val2 = e.Item.Cells[0].Text;
string val3 = ((TextBox)e.Item.Cells[1].Controls[0]).Text;
string val4 = ((TextBox)e.Item.Cells[2].Controls[0]).Text;
int val5 = Int32.Parse(((DropDownList)e.Item.Cells[3].Controls[1]).SelectedItem.Value);

SqlParameter[] arParams = new SqlParameter[4];
arParams[0] = new SqlParameter(“@EMP_ID”, e.Item.Cells[0].Text);
arParams[1] = new SqlParameter(“@FNAME”, ((TextBox)e.Item.Cells[1].Controls[0]).Text);
arParams[2] = new SqlParameter(“@LNAME”, ((TextBox)e.Item.Cells[2].Controls[0]).Text);
arParams[3] = new SqlParameter(“@JOB_ID”, Int32.Parse(((DropDownList)e.Item.Cells[3].Controls[1]).SelectedItem.Value));

try
{
SqlHelper.ExecuteNonQuery(ConnString,”pr_UpdateEmployee”,arParams);
}
catch(SqlException sqlEx)
{
Label1.Text = sqlEx.Message.ToString();
}
DataGrid1.EditItemIndex = -1;
GetData();
BindData();
}

private void DataGrid_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.EditItem)
{
DataRowView objDataRowView = (DataRowView)e.Item.DataItem;
string CurrentJobDesc = (string)objDataRowView[4].ToString();
DropDownList ctlDropDownList = (DropDownList)e.Item.FindControl(“ddlJobTitle”);
ctlDropDownList.SelectedIndex = ctlDropDownList.Items.IndexOf(ctlDropDownList.Items.FindByText(CurrentJobDesc));
}
}

protected DataTable GetJobDataTable()
{
return (DataTable) Session[“JobsDataTable”];
}

}
}

This posting is a community

This posting is a community experiment that tests how a meme, represented by this blog posting, spreads across blogspace, physical space and time. It will help to show how ideas travel across blogs in space and time and how blogs are connected. It may also help to show which blogs are most influential in the propagation of memes. The dataset from this experiment will be public, and can be located via Google (or Technorati) by doing a search for the GUID for this meme (below).

The original posting for this experiment is located at: Minding the Planet (Permalink: https://novaspivack.typepad.com/nova_spivacks_weblog/2004/08/a_sonar_ping_of.html) – results and commentary will appear there in the future.

Please join the test by adding your blog (see instructions, below) and inviting your friends to participate — the more the better. The data from this test will be public and open; others may use it to visualize and study the connectedness of blogspace and the propagation of memes across blogs.

The GUID for this experiment is: as098398298250swg9e98929872525389t9987898tq98wteqtgaq62010920352598gawst (this GUID enables anyone to easily search Google (or Technorati) for all blogs that participate in this experiment). Anyone is free to analyze the data of this experiment. Please publicize your analysis of the data, and/or any comments by adding comments onto the original post (see URL above). (Note: it would be interesting to see a geographic map or a temporal animation, as well as a social network map of the propagation of this meme.)

INSTRUCTIONS

To add your blog to this experiment, copy this entire posting to your blog, and then answer the questions below, substituting your own information, below, where appropriate. Other than answering the questions below, please do not alter the information, layout or format of this post in order to preserve the integrity of the data in this experiment (this will make it easier for searchers and automated bots to find and analyze the results later).

REQUIRED FIELDS (Note: Replace the answers below with your own answers)

* (1) I found this experiment at URL: https://wrt-brooke.syr.edu/cgbvb/
* (2) I found it via “Browsing the Web”
* (3) I posted this experiment at URL: https://blog.my-list.com/
* (4) I posted this on date (day, month, year): 03 August 2004
* (5) I posted this at time (24 hour time): 21:00:00 (UTC-8)
* (6) My posting location is (city, state, country): Phoenix,Arizona, USA

OPTIONAL SURVEY FIELDS (Replace the answers below with your own answers):

* (7) My blog is hosted by: myself (personal MT installation)
* (8) My age is:
* (9) My gender is: Male
* (10) My occupation is: Programmer
* (11) I use the following RSS/Atom reader software:
* (12) I use the following software to post to my blog: Moveable Type
* (13) I have been blogging since (day, month, year): January 2003
* (14) My web browser is: Safari
* (15) My operating system is: Mac OS X (10.3.4)

The crack service team at

The crack service team at earthlink has managed to fail again. Contrary to their repeated assurances, my account was not cancelled. Once again I called, and once again was promised that this time my account was cancelled. The refund of charges for the past ten months has still not been processed. It exists in their system. However, has not received a supervisor’s approval. This is their story and they a sticking to it. Did I mention that earthlink has outsourced their customer service to another country? Now these people don’t have a clue. They have a script, which they follow. Suspect that is why they are all so good at telling the same story. You get what you pay for…. earthlink pays some poor smuck 25 cents and hour and their incompetence drives customers away. Have now initiated a fraud complaint with my credit card company. Will see how that goes.

WARNING: EARTHLINK SUBSCRIPTIONS ARE HAZARDOUS TO YOUR WALLET.

Took the plunge last night

Took the plunge last night and upgraded this site to Moveable Type 3.01D. The process was simple. However, I did have to upload some files several times to get everything to work. It was worth the effort. The new features are great.

I have been getting a lot of span under version 2.6; so have instituted the system registration process. To comment, one now needs to register. Have also added all the spammers to the block list. Hope this cuts down on the spam. Don’t know why anyone would span a blog. They offer nothing but annoyance.

Completed a fun piece of code at work yesterday. It provides offices across the country with the ability to search for suppliers within a specified mile radius. The resultant list leads to product/contract/pricing details. Using these suppliers saves big bucks for the company. The code uses Zip code latitude and longitude to calculate mileage. The project is written is ASP.NET C#. Have been seriously considering moving www.my-list.com to this architecture. Currently my-list it all in perl-cgi. The biggest hurdle is that I also host this blog on my-list. Does MT support the windows platform???

Found a great site, mamamusings.net

Found a great site, mamamusings.net while looking for advise on installing TOMCAT on OS X 10.3. Besides great advise, there was a link to “20 Questions to a Bette Personality.” This peaked my interest. So after answering the 20 questions, to my surprise … I’m a mob boss type.
Here is the actual report….

“Wackiness: 0/100
Rationality: 56/100
Constructiveness: 40/100
Leadership: 64/100

You are an SRDL–Sober Rational Destructive Leader. This makes you a mob boss. You are the ultimate alpha person and even your friends give you your space. You can’t stand whiners, weaklings, schlemiels or schlemozzles. You don’t make many jokes, but when you do, others laugh out loud. They must.

People often turn to you for advice, and wisely. You are calm in a crisis, cautious in a tempest, and attuned to even the finest details. Yours is the profile of a smart head for business and a dangerous enemy.

You have a natural knack for fashion and occupy a suit like a matinee idol. Your charisma is striking and without artifice. You are generous, thoughtful, and appreciate life’s finer things.

Please don’t kick my …. “

Could it be true?

Have used earthlink.net for several

hole Have used earthlink.net for several years. In all that time I never experienced a problem. Last year I traveled to Florida to visit Mom. For this trip I signed up with earthlink for a dialup connection. It worked great. When I returned home I called earthlink and cancelled the service. Last month I noticed a charge on my credit card for earthlink. I called and discovered that they had been charging me for service, which I cancelled last August. The service rep seemed very helpful. Gave me a issue number in case of further problem and advised that my card would be credit for all of the charges since last August. This month I noticed there was another charge from earthlink. I called again and was advised that the refund had not been process. They gave me a second issue number and advised that my card would be credited for the new charge and the previous promised refund would be processed for approval. To prevent further charges they stated that I had to talk with some one else to cancel the account. The transfer resulted in a connection to a closed office. What a great way to spend an evening, talking with an offshore service rep that does not have a clue… I now need to call earthlink again and try to resolve this issue. Will also call my credit card company and file a fraud charge against earthlink. What I have discovered is that earthlink is a black hole. Once you get in you can’t get out. My best advice is NEVER EVER USE EARTHLINK.

Where does the time go?

Where does the time go? Seems like we blinked and our vacation is over. We spent our remaining days visiting with Mom, playing cards(I won twice…), walking, and just generally relaxing. Managed to get some quality Cocoa coding done. Did achieve my goal of writing code to access a web service from Cocoa. Now need to refine this process to duplicate the functionality of www.my-list.com.

Returned to work Thursday, June 10, 2004. Not much happened in my absence. No big problems with any of my customers. Towards the end of the day I started feeling pretty rough. When I got home Sandy took my temperature and it was 103.5 F. Nothing hurts, and I feel fine except for being cold. Guess I will have to take a sick day tomorrow and visit our Doctor. I hate going to the Doctors…