GMail Oddity November 24 2004
I found out this little quirk with GMail. Since it all involves some cool DHTML/DOM/JavaScript stuff if you try to go to a slow moving site you can still compose a letter and almost send it before the destination site has loaded.
Multiple .NET Project Authentication November 23 2004
I have recently required the need for multiple projects to interact with each other, both of which required a Forms based authentication method.
Within each web.config I have the same ticket name for each (forms name=”")
Each web.config also needs the same “machinekey”. This is usally randomly generated however if you want two projects to work nicely together they need the same key.
<machineKey
validationKey=”BD52058A3DEA473EA99F29418689528A494DF2B00054BB7C”
decryptionKey=”684FC9301F404DE1B9565E7D952005579E823307BED44885″
/>
Within each authentication method, make sure to add the domain for the cookie being sent out. If these projects exist on the localhost, set the domain to nothing.
Primary Keys on Home Grown Data Tables November 19 2004
Suppose you want to create your own data table programmatically as I have previously posted
But now suppose you want to assign a Primary Key.
The primary key has many uses. The one use that sticks out in my mind is to retrieve all the data from a datatable row as in my Recovering Datagrid Data with Datakeys post.
The method “dt.PrimaryKey” requires a one dimensional array of columns in order to assign the primary key. The reason for this is to create the key from more than one column.
If you want just one key? Just create a …
Recovering Datagrid Data with Datakeys
When we bind data to a datagrid, it is always important to user the OnItemCommand and DataKeys fields. These will allow you to reference specific rows of information when a user clicks on a certain item on a certain row.
The main topic of this post is how to recover the data from that row in a reasonable manner. Suppose the following:
Datagrid = dgGrid
OnItemCommand = dgGrid_OnItemCommand(ByVal s As Object, ByVal e As DataGridCommandEventArgs) Handles dgFileSystem.ItemCommand)
datakeyfield = intID
Then when the OnItemCommand fires:
dim intMyID = dgGrid.datakeys(e.item.itemIndex)
To retrieve the rest of the values, the data set that is bound to the grid …
Gypsy November 16 2004
There is a new photo of our dog Gypsy in the photo gallery.
Photo credit Paul Hillier
| older posts »