Ok Irfan and Jameel,
Here is what you guys can do.
I think by now you guys must already have a dynamic checkbox right?
So now what you guys need to do is to create a event handler and attach it
to your dynamic checkbox.
Also, do not forget to set the 'AutoPostBack' property of your checkbox to
true.
Here is how u attach an eventhandler to ur checkbox
myCheckBox.CheckedChanged += new EventHandler(myCheckBox_CheckedChanged);
Then make the method to handle it like this :
private void myCheckBox_CheckedChanged(object sender, System.EventArgs e)
{
//Do your processing here
}
After this, set the 'AutoPostBack' property of your dynamic checkbox to true
to that it can fire itself, and you are done!
P.S : If this post helped you, Click 'Yes' on top and rate this post. Thanks
Hth...
R. Thomas
"Irfan Akram" wrote:
Hi Mr.Steve,
First of all many thanks for your kind response. The thing is that I am
trying to control the user's action of deselecting a checkbox, once he has
selected it. Also the checkbox has been generated dynamically. If it is
selected I do some other processing, so if it is then deselected then the
whole page has to be resetted, hence the sense of displaying the warning
message. The problem is that I dont want the warning message to be displayed
when it is deselected, but only when it is deselected. Hope you understand
me....
Hope you have.....will wait for your kind reply...
Many thanks,
Irfan