473,796 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why does updating a div inside of an updatepanel still refreshes entire page?!?!!

hi everyone!
i'm serving up an asp.net page using ajax futures.

long story short:
i have two update panels.
one has a webpage in it (e.g. www.google.com).
the other has an image inside of a div.
however, when i update the div in code behind ( via
UpdatePanel_div .Update() ), the entire page refreshes.
if i change the div to an iframe, then the entire page does not
refresh, only the iframe (like i want).
im not sure what's going on here....is there something special about
div's?
thanks to anyone who has some ideas on this one.
btw...please let me know if you need more info.
thanks,
jojoba

Jul 3 '07 #1
6 8804
When you call UpdatePanel_div .Update( ) from the code-behind, you are
already in the middle of a postback, right? What's the trigger
(control) that caused the postback? Try putting that control inside
an updatePanel also (with children as triggers false and update
conditional). OR try just declaring that control as a "trigger" for
your UpdatePanel_div .

Jul 3 '07 #2
hi and thx for the help!

you said:
<<<<
What's the trigger (control) that caused the postback? Try putting
that control inside an updatePanel also (with children as triggers
false and update conditional). OR try just declaring that control as
a "trigger" for your UpdatePanel_div .
>>>>
The control is a Standard Button.
This button is in the same UpdatePanel (UpdatePanel_re moteWebPage)
that contains a webpage inside (e.g. www.google.com), .
The button is a trigger ONLY for the UpdatePanel_div .
So i have tried your second suggestion to no avail <sad face>.
And i just tried your second suggestion to no avail (putting the
"trigger" button into its own update panel, and setting the trigger
params) <sadder face>
Perhaps this is a bug?
Is the div maybe covering the whole screen or something....an d that's
why im getting the full refresh...(i have set the size of the div tho
to be like 100 x 100)

Any other avenues perhaps?
Thx again,
jojoba
Jul 3 '07 #3
Thanks Patrice!

Tried your suggestion to better localize the issue.
I put a label outside of the UpdatePanels.
I set its text in code-behind, right before i update the
UpdatePanel_div , and the text does NOT change in the browser.
This means to me that although the entire page appears to flicker, i
am still only updating the UpdatePanel_div (that's good!)
So then, the question now is, why the heck is the entire page
flickering when we have just shown that ONLY the UpdatePanel_div is
updating?
Thnx to all,
jojoba

Jul 3 '07 #4
still stuck...
please...anyone have any thoughts?
thx so much
matt

Jul 3 '07 #5
Your said you were calling the updatePanel's update() method
explicitly *and* you have a button as a trigger. That's not how I do
it.

I do one of the following:

A) set a control as a trigger for your update panel. Then you don't
need to call "update()" yourself in the codebehind. I think this is
how it works normally, out-of-the-box.

B) Here's what I like best: Create updatePanels anywhere on your
page you want. Make sure they are all "conditiona l" and make sure you
DO NOT define any triggers. Make sure children as triggers is false.
Then, in the code-behind, call UpdatePanel.Upd ate() method to tell
asp.net to refresh only the proper updatePanel and not the rest of the
page whenever you want. This seems to work really well.

To answer one of your original questions: there is definitely nothing
special about a div that would mess up the updatePanel.

My question: I don't really understant what you mean by "one of the
updatePanels has a webpage in it"? What, technically speaking, does
that mean? Are you using an IFrame? Are you fetching html from a
page and inserting it into a div for it to be rendered?
Jul 3 '07 #6
Hi again
GroupReader said:
>Here's what I like best: Create updatePanels anywhere on your
page you want. Make sure they are all "conditiona l" and make sure you
DO NOT define any triggers. Make sure children as triggers is false.
Then, in the code-behind, call UpdatePanel.Upd ate() method to tell
asp.net to refresh only the proper updatePanel and not the rest of the
page whenever you want. This seems to work really well.
That's sounds like great advice (why update twice, right?).
I implemented those changes.....Sti ll got that darn update problem
(arg!)
GroupReader said:
My question: I don't really understant what you mean by "one of the
updatePanels has a webpage in it"? What, technically speaking, does
that mean? Are you using an IFrame? Are you fetching html from a
page and inserting it into a div for it to be rendered?
Yep, i am using a dynamically generated iframe:
Frame = HtmlGenericCont rol('iframe')
Then i point the src attribute to whatever url i want:
Frame.Attribute s.Add("src", "http://www.google.com" )
That works great.
What stinks is that when i overlay a div on the iframe, and then tell
the UpdatePanel containing the div to update, the whole page flashes.

Kinda confusing....es pecially since if i change the div to an iframe,
i do not get an flash across the entire page....the update works as
expected

any thoughts.
thx again,
jojoba



Jul 3 '07 #7

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

Similar topics

2
4437
by: retroman80s | last post by:
I have an UpdatePanel with a DropDownList. Everytime I select a new item on the DropDownList, the UpdatePanel refreshes and the page jumps to the bottom. I want it to go back to the top of the page, any ideas what the problem is? Everything ASP.NET 2.0 ------------------------------------ http://funkylist.com/ViewList.aspx?id=64&name=Everything+ASP.NET+2.0
1
5217
by: podpi | last post by:
Hello I'm having a bit of a proooblem. I have a gridview which has a checkbox as one of the templatecolumn's. When it is checked, it hides a textbox containing a DateTime templatefield (visible="false" which I set in the RowDataBound Event). I have put the DateTime TextBox inside an updatepanel with an asynchronous trigger on the checkbox. It is hiding and displaying perfectly with the updatepanel whenever the checkbox is selected....
3
9317
by: ma | last post by:
Hello, I have two update Panel in my page. I want to update one of these update panels from another one. How can I do this? How can I force the whole page to be updated from a button inside an update panel? Regards
1
3120
by: =?iso-8859-1?B?R2VhcvNpZA==?= | last post by:
Strange problem... Have a gridview on a page (within an update panel) for displaying event dates. GridView loads fine first time around with the PageLoad. There are 2 text fields a user can use to enter a new new. Upon clicking the "Add Button" these are added to the database, the gridview refreshes its datasource and the GridView is reloaded through
2
2523
by: DeekoVB5 | last post by:
I can't get an UpdatePanel on my page to work. One control - an ImageButton in a GridView - works the first time you click on it, but then freezes all of the controls on the form. The paging controls of the GridView refresh the entire page, as if the UpdatePanel wasn't there. There is an outside control - a dropdownlist - which is set to trigger the updatepanel, and also refreshes the entire page. Below are some snippets from the code....
1
2457
by: Wazzamatazz | last post by:
Hi folks, I've been trying to work out how to asynchronously update the contents of a TabPanel using an UpdatePanel and I can't for the life of me get it to work. I've seen a couple of examples online that declare an UpdatePanel inside a TabPanel, but I get an error when I try and do something like the following: <ajax:TabContainer runat="server" ID="TabList" ActiveTabIndex="0"> <ajax:TabPanel ID="ContentTab1" HeaderText="Tab 1">
0
1342
by: =?Utf-8?B?c21heQ==?= | last post by:
I'm having trouble with a datagrid in an UpdatePanel that includes a user control in the footer and edit rows. The user control references a js file that initializes an onblur for the textbox it contains. This is fine when the page loads however after clicking the add button, the update panel refreshes showing me the row I added and a new footer, but the code contained in the onblur function has been added to the page's javascript as if...
18
24821
by: btreddy | last post by:
Hii all, In one my child page i've an updatepanel which contains a gridview .The gridview displays huge amt of data (~3 pages of data) and the updatepanel refreshes for every 1 sec,for tht i've used timer control, to get the updated data from the server.for that i've used one timer. The problem is ,the webpages scroll bar(both horizontal and vertical) is repositioning to the starting position after every refresh. <asp:Timer...
18
3948
by: navyjax2 | last post by:
What if your event handler has to be nonstatic?
0
9525
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,...
0
10221
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
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 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...
0
9050
agi2029
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...
0
6785
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();...
0
5440
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...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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 we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.