Welcome to CrankyGoblin.Com Sign in | Join | Help

Public Class GeoffAppleby

Inherits Microsoft.VisualBasic.MVP : Implements IBrainFart
As I Said...

Update: The source is now live

I mentioned yesterday how I'm not especially great at ASP.net. Well the update I did last night to Gaptcha proved it :) I added the 'Get more pictures' link to the Gaptcha control, but it only worked if you had text in the comment field, because the validators kicked in.

Thanks to some advice from Bernardo Hynemann, I've seen just how easy that is to fix :)

My link button now has the ValidationGroup attribute set (with a value of "SomethingDifferent" just like he suggested *grin*) and now it works a treat.

<asp:LinkButton ID="btnNewSet" runat="server" CssClass="CommonTextButton" ValidationGroup="SomethingDifferent">Get some new pictures</asp:LinkButton>

 

I really must get around to learning these validators...it looks like they're quite handy :)

(Oh, before you say anything, I know what they are, I already know they're useful, I've just never used them before. Sorry, it's just sometimes people take me literally at my word and I get a very basic lesson sent to me about what something is :)

Posted: Thursday, 19 October 2006 9:52 AM by Geoff Appleby

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

To submit your comment, click on these pictures:
  • Tickle Me Geoff-Mo
  • Geoff with sunglasses
  • Geoff's tongue
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Can't recognise the people in these pictures? Look here for a quick introduction.
There's a time limit for you to get your comment submitted before this set of pictures expires. If you think it's been longer than 10 minutes, get some new pictures first (you won't lose what you've typed so far).
Get some new pictures 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS