473,416 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

onclick does work in ascx control

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
4 2865
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric Mamet | last post by:
Everytime I try to look at a web user control in design mode, Visual Studio prompts me for checking out the file from Visual Source Safe. Apparently, it just shuffles around the first three lines...
1
by: John Cosmas | last post by:
I've got a page which loads up a different user control into a placeholder control every time a button is clicked on the parent page. I use a statement like...
7
by: Jan Hoffman | last post by:
hi @all I have the following element in an ascx-file: <asp:TextBox id="name" runat="server">name</asp:TextBox> The textbox belongs to an application of a telefonebook. I want that if I...
3
by: I am Sam | last post by:
Please help. I'm dying here and pulling out the last few remaining elements of my hair over this. I have built a form that will identify and authenticate users. I keep getting the following...
4
by: Chad | last post by:
I have a link (.ascx) and that generates an Add form on that page. The autopostback dropdown is within a "If Not IsPostBack Then" statement. The form that is created is all via static html in the...
2
by: cavassinif | last post by:
Hi, I have my user control called: WebUserControl1.ascx I have my web page called: WebForm1.aspx I drag WebUserControl1.ascx to WebForm1.aspx. The following tags were added to my page:
0
by: stimul8d | last post by:
Before i get flamed, this isn't the usual question you see left right and center. I'm dynamically creating usercontrols inside the page_init event and setting the ID's of each control so that the...
7
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, does server-side page_load what button was pressed on a postback? thanks, rodchar
2
by: Brian Lowe | last post by:
I'm trying to add the content of a user control dynamically at run time, dependent upon some request attribute. My user control is a simple tell-tall so I'm sure that's not spoiling anything....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.