Reload Image?

Topics: General Help
Aug 11, 2008 at 6:35 AM
Edited Aug 11, 2008 at 6:39 AM
This seems to be a basic feature of CAPTCHA's but I can't find the way on how to do it with this control. Any help will be much appreciated. Thanks
Coordinator
Aug 11, 2008 at 10:36 AM
Hi,

Do you mean you want a button that generates a new image on demand?

Create a custom template for the control (refer to the control's documentation for help) and inside add something like this:

<asp:Button runat="server" ID="getNewTestButton" Text="New" CausesValidation="False" />

Note that I haven't tested this myself.

I'll create a work item and add this functionality to the next release.

- Dave
Coordinator
Aug 11, 2008 at 10:55 AM
Work item:
http://www.codeplex.com/aip/WorkItem/View.aspx?WorkItemId=7269
Aug 12, 2008 at 5:44 AM
Hi dave thanks for the reply.
That solution might be the best for now, but is it possible to generate a new image without reloading the entire page? Thanks again!
Coordinator
Aug 12, 2008 at 12:27 PM
Hi,

You could try placing the AIP control in an AJAX UpdatePanel control.

UpdatePanel Control Overview
http://msdn.microsoft.com/en-us/library/bb386454.aspx

- Dave