onclick does work in ascx control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have made an application in ASP.net with C#. The application works fine with localhost. I have uploaded the site.
I'm using web user controls in the form. but some of the button do not work when they are clicked. One thing that I have found that they are nested user controls. which do not work.

I'm unable to understand what is the problem with that.


thanks in advance.
Das
 
Hi Das,

Events generated from nested user controls get wrapped into ItemCommand events of the parent control. Trap this event instead. This applies to DataList, Reapeater, DataGrid etc. This could be the issue.
 
dear rajan,
this behavior is only with button controls. reset of the control are working fine.
I'm unable to understand why it is behaving like this.


thanks

das
 
dear rajan,
this behavior is only with button controls. reset of the control are working fine.
I'm unable to understand why it is behaving like this.


thanks

das
 
Could you please tell me how exactly are the buttons nested? Are you working with a datagrid/datalist/repeater with button controls?
 
Back
Top