We're hip deep into this bank today. Doing some amazing stuff and making a very rich user experience with as few moving parts as possible. Reuse, Reuse, Reuse.
Here are some interesting things I've learned/been reminded of
public void GridDataBound(Object sender, DataGridItemEventArgs e){ if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { string target = string.Empty; HyperLink linkCancel = new HyperLink(); LinkButton linkButtonCancel = (LinkButton)e.Item.Cells[CancelColumn].FindControl("LinkButtonCancel"); linkEdit.Text = linkButtonEdit.Text; target = Page.GetPostBackEventReference(linkButtonEdit); linkCancel.NavigateUrl = GetConfirmJavascript(e.Item.DataItem as MyObject, target); linkButtonCancel.Visible = false; e.Item.Cells[CancelColumn].Controls.Add(linkCancel); }}
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. I am a failed stand-up comic, a cornrower, and a book author.
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.