Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Button click event in asp.net web sever control (http://www.velocityreviews.com/forums/t781136-button-click-event-in-asp-net-web-sever-control.html)

nguyen nguyen 12-15-2009 02:24 PM

Button click event in asp.net web sever control
 
Hi all.
I have a web sever control that generate a verify image (CAPTCHA). It works, then i trying to add a button to this control. But when the button clicked, it's function wasn't performed. So, what's wrong ?
-- sorry, my english isn't good -- thanks --

[CODE]
........
public class Control_Captcha_v3 : WebControl
{
public static bool SButton_Clicked;
.....
protected override void CreateChildControls()
{
....... SButton.Click += new ImageClickEventHandler(SButton_Click);
.........
}
void SButton_Click(object sender, ImageClickEventArgs e)
{
SButton_Clicked = true; <== it's alway false
}
...........


Submitted via EggHeadCafe - Software Developer Portal of Choice
Uploading & Downloading Files using ASP.NET
http://www.eggheadcafe.com/tutorials/aspnet/aa36fbdd-b4be-4ecc-b9cd-7cc6fc1980a4/uploading--downloading-f.aspx


All times are GMT. The time now is 09:29 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.