473,468 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with AJAX updatepanel?

I have an AJAX updatepanel in an aspx page. Inside the updatepanel is
a placeholder control, which loads various ascx files. This all works
fine. One of the ascx files also has an updatepanel in it. In the
updatepanel is an ASP.NET image button that does a postback. So, it
looks like this:

aspx.updatepanel.Add(LoadControl(ascx control))
--ascx.updatepanel
--imagebutton

After this ascx control loads, I click the image button and nothing
happens. However, from the 2nd click on, it works fine. Another ascx
controls loads and then the one in question loads again. The same
behavior occurs. The first click doesn't work but all after it does.
I also put a breakpoint in the image button click method. It only
hits on the 2nd click and after.

Any ideas why this happens?

Thanks,
Brett

Jan 28 '07 #1
2 2790
On Jan 28, 12:15 am, "brett" <acco...@cygen.comwrote:
I have anAJAXupdatepanel in an aspx page. Inside the updatepanel is
a placeholder control, which loads various ascx files. This all works
fine. One of the ascx files also has an updatepanel in it. In the
updatepanel is an ASP.NET image button that does a postback. So, it
looks like this:

aspx.updatepanel.Add(LoadControl(ascx control))
--ascx.updatepanel
--imagebutton

After this ascx control loads, Iclickthe image button and nothing
happens. However, from the 2ndclickon, it works fine. Another ascx
controls loads and then the one in question loads again. The same
behavior occurs. The firstclickdoesn't work but all after it does.
I also put a breakpoint in the image buttonclickmethod. It only
hits on the 2ndclickand after.

Any ideas why this happens?

Thanks,
Brett
I am having exactly the same AJAX problem. I have a few textboxes and
dropdownlists that are bound to the database.
After the user enters a customer ID and hit the [Retrieve Customer
Info] button, the application retrieves customer info and populates
these said controls.

But, the very first time the user enters the customer ID and clicks
the retrieve button, the controls don't get populated, they get
populated from the 2nd click on.

What's the problem? AJAX bug? I am using the beta version of AJAX.
Feb 4 '07 #2
Has any one found a solution to this yet.
I am willing to pay for it. LOL just kidding.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Apr 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I am new to AJAX. I am applying AJAX to a current web solution to get the "instant behaviour". On my main page I have two sets of criteria: Specific and Wide. Each set is placed in a View...
0
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to...
4
by: bbawa1 | last post by:
When I add updatePanel control in my aspx page it gives me following error. Unknown server tag 'ajax:UpdatePanel
2
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
0
by: Nightcrawler | last post by:
I hope this is the right group for this question. I recently started looking into AJAX and I am doing the following: I have a repeater (dummydata) that is bound to a datatable (Articles). Each...
3
by: =?Utf-8?B?UnlhbiBTbWl0aA==?= | last post by:
I have a form that has a ModalPopupExtender on it. I have un updatepanel on a panel control that is displayed when an Button (outside of the update panel) is clicked. What I am trying to do is...
7
by: MikeB | last post by:
Hello All, I am new to ajax and wanted to start by trying something simple. I have a web form with an updatepanel and then inside the update panel I have a listbox. Then outside of the updatepanel...
1
by: =?Utf-8?B?T2xlZw==?= | last post by:
Hi, I'm wondering if anybody using ajax extensions where UpdatePanel tag is used in addition to existing ajax implementation where UpdatePanel wasn't used yet. So, there is already a web project...
1
by: Mark B | last post by:
This is my first try at using AJAX. I want the calendars to be enabled if the user checks CheckBox1. It works OK for a normal all page refresh but once I introduced the AJAX code it stopped...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.