Button click event in asp.net web sever control
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 --
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
|All times are GMT. The time now is 02:37 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.