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
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.You are experiencing the following symptoms when trying to use an <asp:LinkButton> inside a Repeater, DataList or DataGrid.
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)
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.
There'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)
You gotta check out this "The end of the world" flash movie!
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:
COMMIT TRAN MyPost