Hi all,
I am working on the asp.net custom control in which I am using repeater control to show radio buttons. I need to fire repeaters ItemCommand event when RadioButton is click. The problem I faced is RadioButton is not capabel of firing ItemCommend event and it does not have CommendArgument, and CommandName properties.
To accomplish I created asp.net server control, drived i from RadioButton and add CommendArgument, and CommandName properties in it. I also added a Button in it so that I can call the click event of this button programatically to fire repeaters ItemCommand event.
Now the problem I am facing is I have fired Button's click event but still ItemCommand event is not firing.
Any idea how to gat this thind done?
Loading
Adil SaudPosted Feb 12, 2010, 4:27 AM
Check the onItemCommand attribute on your repeater, in your custom control you need to assign the name of event to OnItemCommand attribute.
Also you can manage it by menas of delegates(declaring the eventhandling mechanism whne your custom control loads).
I had a smilar type of problem, please check with delegates(eventHandlers) OR OnItemCommand attribute of repeater in Custom Control, this will surely sove your problem.
Thanx,
Adil...:))