473,387 Members | 1,534 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,387 software developers and data experts.

UpdatePanel.Update() doesn't work in Firefox

Mel
I have an update panel that has the UpdateMode set to "Conditional".
When I call UpdatePanel1.Update() in the VB code it does not work in
FireFox. It works just fine in Internet Explorer 6.0. Any ideas on
how to fix it so it works in FireFox 2.0.0.14?
Jun 27 '08 #1
7 3314
Because the updatepanel runs on the client and renders part of the
page without calling the server, I'm assuming that the script manager
that it runs on is implemented as a Microsoft behavior. Firefox,
Netscape, Mozilla, IE4 and earlier do not support Microsoft
behaviors. You can test if this is the problem by trying to run your
stuff on these other browsers. If it is because of behaviors, then
your app won't work on these either.

W3C has another HTML extensibility model equivalent to MS behaviors
called Actions. To get your stuff to work on Netscape based browsers,
you will have to re-implement the script manager and update panel
controls as Actions (or see if somebody else has already done that).

Jun 27 '08 #2
Mel
On Apr 21, 12:59 pm, Andy <ane...@infotek-consulting.comwrote:
Because the updatepanel runs on the client and renders part of the
page without calling the server, I'm assuming that the script manager
that it runs on is implemented as a Microsoft behavior. Firefox,
Netscape, Mozilla, IE4 and earlier do not support Microsoft
behaviors. You can test if this is the problem by trying to run your
stuff on these other browsers. If it is because of behaviors, then
your app won't work on these either.

W3C has another HTML extensibility model equivalent to MS behaviors
called Actions. To get your stuff to work on Netscape based browsers,
you will have to re-implement the script manager and update panel
controls as Actions (or see if somebody else has already done that).
Anyone know anything about implementing the update panel as Actions?
Jun 27 '08 #3
forget about this actions malarky - can you post an example that
demonstrates the issue ?

"Mel" <ML********@gmail.comwrote in message
news:64**********************************@m73g2000 hsh.googlegroups.com...
On Apr 21, 12:59 pm, Andy <ane...@infotek-consulting.comwrote:
>Because the updatepanel runs on the client and renders part of the
page without calling the server, I'm assuming that the script manager
that it runs on is implemented as a Microsoft behavior. Firefox,
Netscape, Mozilla, IE4 and earlier do not support Microsoft
behaviors. You can test if this is the problem by trying to run your
stuff on these other browsers. If it is because of behaviors, then
your app won't work on these either.

W3C has another HTML extensibility model equivalent to MS behaviors
called Actions. To get your stuff to work on Netscape based browsers,
you will have to re-implement the script manager and update panel
controls as Actions (or see if somebody else has already done that).

Anyone know anything about implementing the update panel as Actions?

Jun 27 '08 #4
most likely you have a scripting error on the page that prevents the ajax
call. install firebug in ff and see what your error is.

..Update is a server sde method, so if it is firing with ff, then you have a
serverside error, as this means the ajax library is running.

-- bruce (sqlwork.com)
"Mel" wrote:
I have an update panel that has the UpdateMode set to "Conditional".
When I call UpdatePanel1.Update() in the VB code it does not work in
FireFox. It works just fine in Internet Explorer 6.0. Any ideas on
how to fix it so it works in FireFox 2.0.0.14?
Jun 27 '08 #5
the update panel supports ff and safari, no additional code is required.

-- bruce (sqlwork.com)
"Mel" wrote:
On Apr 21, 12:59 pm, Andy <ane...@infotek-consulting.comwrote:
Because the updatepanel runs on the client and renders part of the
page without calling the server, I'm assuming that the script manager
that it runs on is implemented as a Microsoft behavior. Firefox,
Netscape, Mozilla, IE4 and earlier do not support Microsoft
behaviors. You can test if this is the problem by trying to run your
stuff on these other browsers. If it is because of behaviors, then
your app won't work on these either.

W3C has another HTML extensibility model equivalent to MS behaviors
called Actions. To get your stuff to work on Netscape based browsers,
you will have to re-implement the script manager and update panel
controls as Actions (or see if somebody else has already done that).

Anyone know anything about implementing the update panel as Actions?
Jun 27 '08 #6
for example , this works just fine in ie/ff/opera/...

===== WebForm1.aspx =======
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="Web.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
1 <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Just 1"
onclick="Button1_Click" />
<asp:Button ID="Button3" runat="server" onclick="Button3_Click"
Text="Both" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
2 <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="Just 2"
onclick="Button2_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>

====== WebForm1.aspx.cs =========

using System;
namespace Web
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load( object sender , EventArgs e )
{
}
private void UpdateThings()
{
TextBox1.Text = TextBox2.Text = DateTime.Now.ToString(
"hh:mm:ss.ffffff" );
}
protected void Button1_Click( object sender , EventArgs e )
{
UpdateThings();
}
protected void Button3_Click( object sender , EventArgs e )
{
UpdateThings();
UpdatePanel2.Update();
}
protected void Button2_Click( object sender , EventArgs e )
{
UpdateThings();
}
}
}

"gerry" <ge**@newsgroup.nospamwrote in message
news:On****************@TK2MSFTNGP04.phx.gbl...
forget about this actions malarky - can you post an example that
demonstrates the issue ?

"Mel" <ML********@gmail.comwrote in message
news:64**********************************@m73g2000 hsh.googlegroups.com...
>On Apr 21, 12:59 pm, Andy <ane...@infotek-consulting.comwrote:
>>Because the updatepanel runs on the client and renders part of the
page without calling the server, I'm assuming that the script manager
that it runs on is implemented as a Microsoft behavior. Firefox,
Netscape, Mozilla, IE4 and earlier do not support Microsoft
behaviors. You can test if this is the problem by trying to run your
stuff on these other browsers. If it is because of behaviors, then
your app won't work on these either.

W3C has another HTML extensibility model equivalent to MS behaviors
called Actions. To get your stuff to work on Netscape based browsers,
you will have to re-implement the script manager and update panel
controls as Actions (or see if somebody else has already done that).

Anyone know anything about implementing the update panel as Actions?


Jun 27 '08 #7
Mel
On Apr 21, 1:58 pm, Mel <MLights...@gmail.comwrote:
On Apr 21, 12:59 pm, Andy <ane...@infotek-consulting.comwrote:
Because the updatepanel runs on the client and renders part of the
page without calling the server, I'm assuming that the script manager
that it runs on is implemented as a Microsoft behavior. Firefox,
Netscape, Mozilla, IE4 and earlier do not support Microsoft
behaviors. You can test if this is the problem by trying to run your
stuff on these other browsers. If it is because of behaviors, then
your app won't work on these either.
W3C has another HTML extensibility model equivalent to MS behaviors
called Actions. To get your stuff to work on Netscape based browsers,
you will have to re-implement the script manager and update panel
controls as Actions (or see if somebody else has already done that).

Anyone know anything about implementing the update panel as Actions?
Fixed. Apparently this is a known issue with images in UpdatePanels.
I "change" the imageURL of the imagebutton to something different each
time, by appending "?a=" followed by a number which gets incremented
each time. Now the image updates properly.
Jun 27 '08 #8

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

Similar topics

2
by: Jl_G_0 | last post by:
I have a form with ALL my controls on an updatepanel, but theres one giving me a hard time, its an asp:FileUpload control. All I want to do is: - Click on a LinkButton <- WORKS - Open a...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
6
by: jojoba | last post by:
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...
1
by: koraykazgan | last post by:
Hi all, I have a user control (ASCX). In that user control there is a panel, and inside that panel there is a textbox and a button. The panel has a DefaultButton property set, which is set to the...
1
by: =?Utf-8?B?U3Rvcm1icmluZ2Vy?= | last post by:
I have an UpdatePanel with a dropdown list that I can't seem to get to update. It has a hidden button which I click from javascript added to the page when another update panel is updated. Triggers...
0
by: Jeff | last post by:
hey asp.net 3.5 I'm expermenting with UpdatePanel (started learning about UpdatePanel tonight). I've have a webpage which contain a UpdatePanel etc... In the code behind I try to update the...
3
by: =?Utf-8?B?T2xlZw==?= | last post by:
(in .NET 2.0 with AJAX extensions) I have an UpdatePanel on the form. Now I want to use a link outside of my UpdatePanel to make it to update (asynchronously) and also send some(at least one )...
4
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
when I try to style a div using the id tag, from an external style sheet, it is not recognized. If I change the style sheet id to a class, it is recognized. Is this how styling a div within an...
8
by: Nick | last post by:
Hi there, I have a GridView in an UpdatePanel, each time the UpdatePanels Load event fires I set the DataSource and call DataBind of the grid view. This works great once, I add an item to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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:
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
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
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...

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.