This weblog has moved here [http://markallanson.net/wordpress/]. What you see here is an archive.

29

Apr

2004

Mark's Asp.Net Journals

I am a reasonably accomplished C#.Net Software Engineer, however one part of the .Net Framework and technologies that I have not explored is those in the area of Asp.Net. In order to learn this part of Microsoft's technology offerings I have embarked upon a small(ish) but extensible project that I can do in stages, and hopefully make use of a wide subset of the technology available.

Rather than discuss the project that I will be developing (as I am sure most are not interested in this), I will instead post a series of writings on the problems that I run into while developing with Asp.Net. Hopefully by having these on a blog with higher google juice may save some people the time I waste with my own occasional stupidity.

Journals

  1. Beware of the comment devil: How to save hours of time
Please check back on this post for an index of what I write about, alternatively just subscribe to my weblog in your news aggregator(ATOM) and never come back here again.

Posted by Mark at 10:48 PM | Comments (0)

Asp.Net: Beware of the comment devil: How to save hours of time

You are experiencing the following symptoms when trying to use an <asp:LinkButton> inside a Repeater, DataList or DataGrid.

Javascript Error: Error On Page
Line: 1
Char: 1
Error: Object Expected
Code: 0
URL: Your URL

When you place a LinkButton inside one of the databound repeating controls, asp.net generates a javascript function to deal with the OnClick event of each LinkButton it ends up placing on the page. (Note the number of LinkButtons will depend on how many items of data you are displaying)

function __doPostBack(eventTarget, eventArgument) { ... }

Please, oh please make sure that you have closed off all comments in your html <head> section. By failing to close off your comments in your head section you are effectively commenting out the javascript code that asp.net creates to handle your events on the Repeater/DataList/DataGrid Control. By commenting this function out it is now inaccessable during the processing of the OnClick event of the LinkButton, hence your page is broken.

Props to Mun for helping me find this one.

Note: You can visit my Marks Asp.Net Journals Post for an index of all the Asp.Net tips and tricks I have painfully learned during my Asp.Net Adventures.

Posted by Mark at 10:46 PM | Comments (0)

25

Apr

2004

Mud & Worms

Picture of Mud & Worms Breakfast Cereal BoxThere's a new breakfast cereal for me! This Mud & Worms promotional cereal for Shrek 2 tastes great. Think chocolate corn pops with banana shaped "worms" inside :) Delicious stuff! Click on the picture to the left for a bigger version.

(PS. I am sorry for the broken design below, I must have some css wrong somewhere)

Posted by Mark at 06:24 PM | Comments (0)

18

Apr

2004

The end of the world, the flash!

You gotta check out this "The end of the world" flash movie!

Posted by Mark at 04:45 PM | Comments (1)

17

Apr

2004

Work can be draining

BEGIN TRAN MyPost

Just had a long 2 week period of late nights and in on the weekends. That combined with a dead notebook is the reason for not posting for a while.

On the up side, given the last 2 months experiences, I can delare the following things:

  1. I feel that I am now confident enough with Java and the Eclipse environment that I could take a Java job. (note there is a large difference between could and want. I don't ever want to take a java job)
  2. Even though most underground lines are unreliable, and despite the Central line being very crowded, Central Line > District Line
  3. I now grasp the concepts and implementation of Web Services and .NET Remoting
  4. London trains can be in general described as unreliable
  5. I am beginning to become quite fluent in (T)SQL
Given the amount of time I have been spending at work I haven't had any time to do any of my own development work. I have just recently started using Microsoft Money 2004 to manage my finances and wanted to develop a Mozilla plugin to export my bank records from online banking into Microsoft Money, but it seems like money can only import Quicken type files, and the last thing I want to do is have to mess about with file formats.

COMMIT TRAN MyPost

Posted by Mark at 04:47 PM | Comments (0)