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 4 2886
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 of code in
the ascx file
Original is
<%@ Register TagPrefix="uc1" TagName="LogonMessageDisplay"
Src="../../Controls/LogonMessageDisplay.ascx" %>
|
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 Me.plcTabViews.Controls.Add(LoadControl("test.ascx")). There
are up to 30 possibilities which are decided by CASE statements and keeps
one from loading up onto another. However, I'm running into a unique
error...
Failed to load viewstate. The control tree into which viewstate is...
|
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 click into the Textbox *once* that the text "name" is
selceted. at the moment I have to double-click.
|
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 error with the Form:
Compiler Error Message: CS0122:
'Sonar3.Controls.LoginControl.Button_Click(object, System.EventArgs)' is
inaccessible due to its protection level
|
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 user control.
The problem is, no matter what even when no data is filled out in the
form, the submit button just postsback the page and nothing happens. I
have 2 dummy links on the page right now, and the form is automatically
created without a...
| |
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:
|
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 events survive postback. in the user control i have a datagrid which uses the old databinding events (updating, editing etc,...). Here's the problem, the editing event fires but the updating event doen't. Take a look -
This is the...
|
by: =?Utf-8?B?cm9kY2hhcg==?= |
last post by:
hey all,
does server-side page_load what button was pressed on a postback?
thanks,
rodchar
|
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.
<%@ Control Language="C#" AutoEventWireup="true"
CodeBehind="cpStatus.ascx.cs" Inherits="uc.cpStatus" %>
<p>status indicator for special users</p>
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |