March 2011 - Digital Tool Factory blog March 2011 - Digital Tool Factory blog

The Digital Tool Factory Blog

What you need to know about REST

I was going to start a new category on the blog entitled “What You need To Know”, and have the first entry be about the computer science notion of REST (by which I mean Representational State Transfer) but I could never top this this blog post How I Explained REST to My Wife – it’s absolutely brilliant.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


02
Mar 11


Written By Steve French

 

How to fix the asp.net DetailsView data validation problem

Jugando con texturas (XIII): Resurrecciónphoto © 2010 Zyllan | more info ia: Wylio) The Problem: You have the standard asp.net DetailsView control (one of many on that page) and your custom validator refuses to work.  So do all of your standard validators now that you think about it.  Your command button looks like this:

<asp:ButtonField ButtonType="Button" ValidationGroup="Main" Text="Add This" CommandName="InsertNewRecord"  />
and all of your ValidationGroups are set to "Main"

The Cause: DetailsView is designed to work that  way, don’t ask me why

The Solution: Put everything in a regular button, like so:

<asp:TemplateField><InsertItemTemplate>
<asp:Button runat="server" ID="btnAddNewAddress" ValidationGroup="Main" CommandName="InsertNewRecord"  Text="Add This"/>
</InsertItemTemplate>
</asp:TemplateField>
That works, no idea why, but it does.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


02
Mar 11


Written By Steve French

 




Copyright 2011 Digital Tool Factory. All Rights Reserved. Powered by raw technical talent. And in this case, WordPress.