By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,533 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,533 IT Pros & Developers. It's quick & easy.

onclick does work in ascx control

P: n/a
Das
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
Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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.

--
Rakesh Rajan
"Das" wrote:
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

Nov 16 '05 #2

P: n/a
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

"Rakesh Rajan" wrote:
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.

--
Rakesh Rajan
"Das" wrote:
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

Nov 16 '05 #3

P: n/a
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

"Rakesh Rajan" wrote:
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.

--
Rakesh Rajan
"Das" wrote:
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

Nov 16 '05 #4

P: n/a
Could you please tell me how exactly are the buttons nested? Are you working with a datagrid/datalist/repeater with button controls?

--
Rakesh Rajan
"Das" wrote:
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

"Rakesh Rajan" wrote:
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.

--
Rakesh Rajan
"Das" wrote:
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

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.