.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

UpdatePanel don't work with Google Chorme or Mozilla Firefox.

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :ASP.Net

Hi I am using update panels with Update mode conditional in by aspx page. The page is functioning properlly in the IE.8.0 but the page content is not posting when i open it in the Google Chrome or Mozilla Firefox.

FYI I am using Update panels for drop down lists and buttons and in the triggers also i am using similar controls

Pls can you suggest a way to get this out.



View Complete Post

More Related Resource Links

removeChild() Wont work on Mozilla FireFox ?


Hey, Here is my code:

function removeFlaskLeakInIE(id) {
    var obj = document.getElementById(id);
    if (obj) {
        for (var i in obj) {
            if (typeof obj[i] == "function") {
                obj[i] = null;



This code works on IE and Chrome, But doesn't work on FF... =\

Any ideas?

How do you insert a google map into an ajax updatepanel?


I have built a site that I am using google maps on.  The default page has a google map with info windows containing links and all works great... until a user clicks on the link in the info window.  Doing so takes them to a community page that I have built.  On this community page, I have an ajax update panel that has 2 panels nested inside of it with the visibility set for one to be on and the other off.  The default panel shows community photos, and the second panel I want to show the google map and common directions to the community.  In testing, my buttons to switch the visibility of the panels works great as it should without postback, but when I try to add the map to its panel, it does not show up.  I am new to ajax as well as google maps and I'm not sure why the same code would work fine on my default page but not the community page.  The only obvious thing I can assume is because the community page map is in an update panel.  

How do you insert a google map into and ajax updatepanel and have it work correctly?  Many thanks in advance. 

file upload in Create User Wizard Created User event with UpdatePanel Tag wont work?



In my Create User Wizard1 Created User Wizard Event, I am collecting extra information from text boxes and allowing

the user to uplad a file.



I have put the Submit button within an Update Panel Tag but since I have done this it does not work.

Is there a way round it. In this situation would you use a trigger.?


<br />

  <asp:UpdatePanel ID="UpdatePanel2" runat="server">

  <asp:Button ID="StepNextButton" runat="server"  CommandName="MoveNext"  align="middle"
                                            Text="Submit my Profile" />

onunload does not work in firefox when only one tab

The following script as added to the header of a web page, when the firefox browser is closed, i would expect the alert to fire.  This works if using IE and Firefox when closing a tab when there is more than one tab.  <script type="text/javascript">        window.onunload = function() {            alert('dologging');        }       </script>This is required as i would call a web service logging method instead of firing an alert, onbeforeunload is not possible as i would like to something like belowwindow.onbeforeunload = function() {                       if (confirm("Are you sure")) {                alert("dologging");                self.close();            }            return null;        }BUT, there is no way to stop the unload as if you do not return a message it will c

form in updatepanel (firefox vs ie newline)

I've got a form consisting of a multiline textbox (textarea) and a button.It works submitting the form and storing the text in the mysql database and then displaying the text on the site.Before displaying the text I change all newlines to br-tags: .Replace(Environment.NewLine, "<br />");  The problem is that since I added an updatepanel around the form, the displayed text does not have any newlines in it.This occurs only when the form was submitted using firefox, when submitting the form in IE there are newlines.I'm pretty sure this is because in firefox a newline is \n and in IE a newline is \n\r . and then Environment.NewLine is compared to \n instead so they're not displayed. The question is why \n is saved in an async postback when \n\r is saved in the database in a non-async postback (both cases using firefox) and what can I do to fix this? If this is the problem, it should be very common but I googled and couldn't find anything....

div not work on firefox


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!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" >
<script type="text/javascript">
function showMe2(it,txtid,msg)
document.getElementById(it).style.display = "block";
document.getElementById(it).innerHTML = msg;//document.getElementById(txtid).parentElement.offsetTop ;
e.style.top= document.getElementById(txtid).parentElement.offsetTop+35;
e.align = "left";
//document.getElementById(it).style.top  =document.getElementById(txtid).style.top ;
function hide(it)
document.getElementById(it).style.display = "none";


    <form id="form1" runat="server">


ASP.net Website - Styles and Java script not working on Mozilla firefox



       I developed a ASP.NET website. The style sheets are loading and the site is working well on Internet explorer. But When I open in Mozilla firefox/ google chorme The sytle sheets doesnt work and the javascript also doesnt work. I am not sure what to do to make my website compatible with firefox/chrome. Can someone tell me what needs to changed or where the problem usually arises in this kind of scenarios?



Get the value of hiddenField HTML control not work properly in FireFox


Hi Guys,

I'm trying to access the the value of Hidden field as follows:

var empID= document.getElementById('HiddenField1').value;

It works well in IE but gives null in FireFox

UpdatePanel Trigger dont work with Master Page



I got a aspx page using a master page. In the aspx page, i got multiple Content section:

<asp:Content ID="Content1" ContentPlaceHolderID="CPHSubHeader" runat="server">

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">

<asp:Panel ID="Panel1" runat="server">
            <asp:table id="tblSubHeader" runat="server" width="100%" bgcolor="white">
              <asp:TableRow runat="server">
                <asp:TableCell ID="TableCell1" runat="server" Width="50">
                    <asp:Label runat="server" Text="Area" Font-Names="Arial" Font-Size="14px"></asp:Label>
                <asp:TableCell ID="TableCell2" runat="server" Width="100">
                    <asp:DropDownList runat="server" ID="ddlArea" AutoPostBack="true" OnSelectedIndexChanged="DDLArea_SelectedIndexChanged"></asp:DropDownList>
                <asp:TableCell ID="TableCell3&q

Ckeditor will not work in FireFox.


I'm using ckeditor in my page and it's work fine, except when I'm sending email. The mailbody is empty in FireFox, in IE it works fine. What can it be? Here is my code

protected void btnSend_Click(object sender, EventArgs e)
        string senderMail = txtSenderMail.Text;
        string subject = txtSubject.Text;
        string mess = Request.Form["editor1"];
        mess = HttpUtility.HtmlEncode(mess);

        bool isValid = Utilities.CheckString("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$", senderMail);

        if (!isValid)
            lblMailStatus.Text = "<ul><li>Din epost stämmer inte!</li></ul>";
            lblMailStatus.CssClass = "boldText redText";
            bool success = Utilities.SendMail(txtSenderMail.Text, SiteConfig.MailReceiver, txtSubject.Text, Request.Form["editor1"]);

            if (success)
                lblMailStatus.Text = "<p></p>Ditt meddelande är skickat och vi kommer att svara så fort vi kan.<p></p>Tack för du använder vår hemsida<br />ImmWebb.se";
                lblMailStatus.CssClass = "boldText greenText";
                lblMailForm.Visible = false;

Ajax Nobot, updatePanel on firefox


Hi guys,

I encounter a very strange problem and hope someone could help me. I have a content page in which a nobot control is used to prevent any robot guessing. There is an updatepanel used to hold all the input fields, enter button and the nobot control. Whenever I finished filling out the form and pressed enter button, an invalidbadresponse will come out. This problem doesn't appear on IE, Chrome but on Firefox. I used firebug to trace the problem and then i found that 2 posts were submited. 1 is aborted and 1 is successfully sent. The most wired thing is, when i fired the webpage on debugger mode from visual web developer (http://localhost:<port> ), firefox can validate it without a problem. Once I copied the page to my website ( http://www.mySite.net/ ), such invalidbadresponse comes out. Then, I tried to remove the updatePanel and now only 1 post is sent and no more invalidbadresponse is shown. Therefore, I guess the problem is between the mechanism of nobot and updatepanel. Could anyone know what happens behind and what I could do to solve this problem ?

My challenge is from the internet:

    Protected Sub CustomChallengeResponse(ByVal sender As Object, ByVal e As AjaxControlToolkit.NoBotEventArgs)

Cannot get OnClick, OnMouseOver, etc. functions to work in Firefox (but they work just fine in IE)


I am adding the following VB event handler code to my GridView's RowDataBound event:

If (e.Row.RowType = DataControlRowType.DataRow) Then
e.Row.Attributes.Add("onmouseover", "this.style.cursor='hand';this.style.textDecoration='underline';")
e.Row.Attributes.Add("onmouseout", "this.style.textDecoration='none';")
e.Row.Attributes.Add("onclick", ClientScript.GetPostBackClientHyperlink(Me.GridView1, "Select$" + e.Row.RowIndex.ToString()))
End If

This code works just fine in Internet Explorer, but not in Firefox. The If statement returns true, but none of the On... events get fired. What is blocking this in Firefox? 

Slow updatepanel.update() in IE6/7, fast in firefox?! tried fix.


I have an update panel with about 5 slider extenders, 10 textboxes, and 3 dropdown bullet list.  When a slider is moved, a partial postback occurs, that which the server also updates another textbox with a value by first setting the textbox (.text = somevalue) and then calling the updatepanel.update().

I find out that this command updatepanel.update() significantly causes IE6 and IE7 browser to lag about 1-1.5 seconds longer when updating the values in the textbox.  It is sort of unacceptable.

I have applied this fix already: http://support.microsoft.com/kb/2000262

but it is not helping.

However, I must say, this problem is not occuring in FireFox 3.6.  In fact, it has no lag whether or not the fix is used.  The problem only occurs in IE6 and IE7.

Any idea why an updatepanel is slow to refresh?


Firefox and google chrome textbox wrap is not working


Hi there, i have did some research on this topic. But what i have try to search still cannot solve my problem in Firefox.

 I have a textbox with textmode= multiline. i put a wrap= true is becoz i wan to display the address line by line and same as how the users input. I have tested in IE,Google Chrome and Firefox, two browser is not working except the IE.


<asp:TextBox ID="txtContactAddress" runat="server" CssClass="txtbox"

How to manage browser compatibility between IE and mozilla firefox


HI all,

I have developed one website which works very fine on IE 6,7,8 but i am not able to see my pages finely on mozilla firefox.

i have used

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

tag for IE Compatibility.

i want to run my website on mozilla firefox.

Please Help me

JavaScript problem for mozilla firefox


Hi all,

i have developed one site. My requirement is that in the signup form i have denied entering of alphabets using javascript

script is as follows


if ((e.keyCode>=65 && e.keyCode<=90 )||(e.keyCode>=97 && e.keyCode<=122 ) ||  e.keyCode==32 || e.keyCode==46)
              alert('Please Enter Only Alphabet');


This script Works very fine on IE 6,7,8 but when i switched to mozilla firefox it wont works

plz help me

RadioButton inside GridView, How to get it work as normal

Did you tried before to drag a RadioButton control inside a Gridivew templatefield, and then you attempt to select these RadioButtons , you will notice that the behavior of RadioButton control will be changed and it will work just like the behavior of checkbox control! the user will be able to select more than one radiobutton in the grid!
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend