While reading about a recent question concerning @@Identity and the reasons to use SCOPE_IDENTITY() instead I experimented with LINQ to get the SCOPE_IDENTITY() results. using (var dbc = new siteDataContext()) { dbc.Log = Console.Out; repertoire newSkill = new repertoire { skill = “a new item” }; dbc.repertoires.InsertOnSubmit(newSkill); dbc.SubmitChanges(); Console.Write(; } It seems that calling the… Continue reading SCOPE_IDENTITY() with LINQ

Adding AJAX to an existing project that includes Routing

I was working on a project and just on a whim decided to try out some of .NET’s AJAX controls. I chose a random page, added a ScriptManager, tossed in a TextBox and a CalendarExtender. F5. Page shows up. Javascript error: Line: 121 Char: 1 Error: ‘Sys’ is undefined Code: 0 Url: http://localhost:49329/admin.aspx Hmm. Try… Continue reading Adding AJAX to an existing project that includes Routing

Working on Bible Verse Tags for ASP.NET (C#)

To do: build Regex to detect bible verses in tags put in named back-references find a way to choose different tables with LINQ make it work for an entire chapter add error messages move it to a class file instead of in the page run it from the filterText method if IndexOf(“[bible]”) !=-1 fix toVerse… Continue reading Working on Bible Verse Tags for ASP.NET (C#)

Firebug primer by Hugo

For those that are not aware Firebug is a add-on for Firefox, and is essentially a development debugging tool, that allows you to inspect various aspects of a web page. It has become – for those that have used it for a while – one of those indispensable tools that make day to day coding… Continue reading Firebug primer by Hugo

Why I don’t do xmas

It involves lying. Do you tell your children “if you’re good Santa will bring you presents”? That’s a lie. Do you tell your children that Santa exists? That’s a lie. Do you tell your children that Santa actually flies in a sleigh and delivers gifts? That’s a lie. It encourages children to lie. “Yes, I… Continue reading Why I don’t do xmas

A fake iPod

For those of you that still insist on using ebay I’d suggest caution when purchasing an “iPod” from ebay. Counterfeit Official iPod There is a little apple logo and the word “iPod” at the bottom of the screen I don’t see that logo on the real iPod Memory and processor chip at top (behind screen)… Continue reading A fake iPod

Categorized as Random Tagged

Why I am the way I am – IV

Grade: Kindergarten Age: 4 It seemed like a regular Friday. We had alphabet, milk break and recess just like every regular day. After recess we’d normally just sit and draw or play and wait to get ready for the bus. Miss McNanny announced after recess that we should each pick a partner for “something special”.… Continue reading Why I am the way I am – IV