jump to navigation

Work in Progress September 30 2004

This is a work in progress…please stay tuned!

Dynamic Button Columns September 29 2004

Suppose as you generate a datagrid that you want a button associated with each row. This will demonstrate how to create the dynamic row along with retrieving the item index (e.g. Primary key)

Step 1: Create the data grid

<asp:datagrid runat=”server” id=”dgMyDG” DataKeyField=”row_id” OnItemCommand=”dgMyDG_ItemCommand”>
<Columns>
<ButtonColumn Text=” [ delete ] ” CommandName=”delete_row” />

</Columns>
</asp:datagrid>

Step 2: Create the receiving Command

Sub dgMyDG(byval s as object, byval e as DataGridCommandEventArgs)

dim selected_row_id = dgMyDG.DataKeys(e.item.itemIndex)

End Sub

Exiting a FOR LOOP

In case anyone is wondering how to “break;” out of a FOR LOOP in VB.NET

“END FOR” is your magic statement

XHTML Valid September 28 2004

All this time I thought this blog was valid XHTML… Turns out I should have checked after each post as there were errors everywhere.

A word to the wise bloggers!

Check your blog after every post for valid XHTML, this will reduce headaches in the future!

FOAF

Created a FOAF from the FOAF-A-Matic.

Maybe this will do something? Maybe not.

| older posts »