.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

Safari, Firefox

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

Greetings - I am trouble shooting some classic ASP code that has an included file that contains a function that accepts a datatable as input and loops thru and creates an html table to house the data and writes it using response.write to the page.  The problem is that firefox and safari both briefly display the table and then it disappears.  I can solve this by adding a response.end after it is written but this causing other controls on page to cease firing any event or postback.

It is possible that the dynamic HTML is poorly formed and safari and firefox don't like it.  If so, how would I view it before it disappears?


Any ideas?








View Complete Post

More Related Resource Links

Background image of Anchor not working with Safari/Firefox

Hi, I have following Css where i have used back-ground image. Then i am generating Anchor and assigning css class which has image. It works fine with IE but does not work with Safari,Firefox and Chrome. Can anyone help me on how to fix it. I have given details below. Thanks, Chandan Css .HOME { BACKGROUND-IMAGE: url(../images/home.jpg); WIDTH: 56px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 20px } .HOME A { WIDTH: 56px; HEIGHT: 20px } .HOME A:hover { BACKGROUND-IMAGE: url(../images/home1.jpg); WIDTH: 56px; HEIGHT: 20px } Html Code<td class="home"> <A href="#" class="home" onclick="showpage('abc.html')"/></td>

Multiline Grid Cell Displays correctly in IE but not FireFox or Safari


Using C#

in the ASPX file, I define a grid:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        BorderStyle="Double" Caption="Club's Dashboard"
        CaptionAlign="Top" Width="292px" EnableTheming="False"
        HorizontalAlign="Left" CellPadding="5">
          <HeaderStyle BackColor="Fuchsia" Wrap="False" />
          <RowStyle HorizontalAlign="Center" Wrap="False" />
           <asp:boundfield datafield="B2" headertext="." htmlencode="false"/>

          <asp:boundfield datafield="P

Jquery scripts in user control works fine in explorer but not in Safari/Firefox



Hi everyone,

I've used some Jquery scripts for toggling image on a web user control, it work fine in explorer but got no signs of life in firefox!

Here the code for a test form in plain html (this works on every browser):

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/toggle.js"></script>

<div id="invisible">
   <a href="images/accurate.gif" class="swap" rel="lightbox"><img src="images/polaroid_control.gif" id="showimage" /></a>
But i need to use it in a user control so i got:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="gallery_admin_search.ascx.cs" Inherits="CMS_GalleryControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<div id="invisible">
    <img src="images/polar

javascript not working in Firefox/Safari


I hope this is the correct place for this post as it's relevant to both ASP.NET and Javascript.

I am creating a nested ListView. In the ListView1 the first column contains an asp:Literal control named LiteralTreeIcon.

In the event OnItemDataBound of ListView1 I am doing the following:

Literal treeIcon = e.Item.FindControl("literalTreeIcon") as Literal;

if (treeIcon != null)
treeIcon.Text = invoices.Count() == 0
? "<img src=\"../Images/treedot.gif\" alt=\"\" height=\"16\" width=\"16\" />"
: String.Format(
"<img src=\"../Images/buttonplus.png\" alt=\"\" height=\"16\" width=\"16\" onclick=\"javascript:toggleGroup(this,'invoices{0}');\" />", header.ID);

This is working correctly, as in the icons are changing depending if there is data in the second ListView or not.

I then have a Javascript function in my ASP.NET page:

function toggleGroup(img, childName) {
var src = img.src;
var parentObject = document.getElementById(childName);

if (parentObject == null) {

images are not rendering in Firefox but are in Safari



i'm not sure i'm posting in the right form thread so apologies if this belongs elsewhere. 

I have a website www.findmyhomefromhome.com . When you click on any thumbnail image Safari renders the images but in Firefox show up as binary garbage. (safari does not render gif images but does .jpeg images)

in my .cs file for the gridview itemtemplate I supply the following string

string stringvalue = "<a href=\"javascript:void(window.open('FullImage1.ashx?picid="

            + picid

            + "','_blank','toolbar=no,menubar=no'))\" > <img src='ThumbNailImage.ashx?picid="

            + picid

            + "'> </a>";


The images are mostly of type jpeg but i'd like to support other image types as well if that's not too much of a hack. 

I don't know what other information is relevant so i'll wait to be asked. 



Problem in firefox and safari to call ajax method?


why does my below method not work with firefox and safari, every time it goes on OnFailed method?

is there setting requirement in browser to call page Method ?

also In IE method is calling sucessfully, but why alert message does not come ?

function SendMessage() {
      var user = document.getElementById('<%=User.ClientID %>');
      var val = user.value;
      var random = 2345;
      var nonRandom =12345;
        var toAddress = val;
        PageMethods.SendResetMailMessage(toAddress, random, nonRandom, CloseWindow, OnFailed);

    function CloseWindow(ret) {
      // Below code is usedOnClick="OnForgotPassword_Click" to close the window, if mail has been sent to the user sucessfully.
      if (ret == "1") {
        var windowObj = window.self;
        windowObj.opener = window.self;

Gridview check all not working in Mozila Firefox


hi all,

i has an gridview first column header is Checkbox, when i click on that all the detail column checkboxes were selected if i use IE but the same not working in Mozila Firefox

below is my code

function checkAll()
                  var totalChkBoxes = parseInt('<%= gv5.Rows.Count %>');
                  var gvControl = document.getElementById('<%= gv5.ClientID %>');
                  var gvChkBoxControl = "cbCheckProd";
                  var mainChkBox = document.getElementById("chkBoxAll");
                  var inputTypes = gvControl.getElementsByTagName("input");
                  for (var i = 0; i < inputTypes.length; i++)

Report server URL accessible with Firefox But not with IE 8


I configured reporting services integrated with Share Point. I can able to access the report server URL using firefox. But, i am unable to browse to the URL using IE. Anyone, please shed some light on this. I can able to access URL in IE by using IP address:

Example : [Firefox]

http://systemname/reportserver      {accessible}

Example : [Internet Explorer]

http://systemname/reportserver      {Not accessible}

http://IPADDRESS/reportserver    {accessible}



Toggling of iFrames works fine in Firefox but not in IE


I have different iFrames on my page and one of the iFrame has pdf plugin that shows the PDF document and i have another iFrame that pops up on delete button click and  a function to toggle the iFrames. It works fine in Firefox but in IE my pop up iFrame is always behind the PDF. 
Any thought how can I set it right, there is some issue with the z-index of PDF, it is set to infinity something like that in IE ! 


Login control is suddenly broken in IE7 but works perfectly on Firefox (It works on both browsers lo


Hey Guys,

 I'm new around and I thought this is probably the best place to help me solve my dilemma, I am developing a website for almost a year now and the login control was implemented a logn time ago, however all of a sudden it will not authenticate on Internet Explorer 7 when the application is published, it doesn't even provide a message that authentication was unseccssful or throws any error, it just refreshes the same page. however this problem doesn't occure when I try the same website on FireFox 2.0...Also when I run the page locally on Cassini it work great on both browsers...This is one of the weirdest errors I have ever faced. what could have gone wrong on the server side to cause this? knowing nothing changed on the server-side...I'll provide a snapshot of the login control below

<asp:Login ID="LoginControl" runat="server" BackColor="Trans

Has anyone experienced problems using a reorder list control in Chrome/Firefox?


I have three reorder lists on a page, one does not want to work. It is no different to the others, but is behaving like it is not enabled.

All working fine in IE 7 + 8.

Any ideas appreciated :)

Javascript fails in chrome and firefox, works fine in IE



I am customizing Newform.aspx i.e. hiding some fields, making other readonly etc. It works fine in IE but fails miserably in chrome and firefox i.e. readonly are no more readonly, hidden are no more hidden. Here is my code:

<script language="javascript" type="text/javascript">
    function autoFillFields()
       var ctrl = findacontrol("Reference Customer");
    var param = getURLParam('RefFromCust');   
    var properParam = replaceCharacters(param);
    ctrl.value = properParam;
    var ctrl = findacontrol("RefReqOpptyId");
    var param = getURLParam('OpptyId');   
    var properParam = replaceCharacters(param);
    ctrl.value = properParam;

    param = getURLParam('RefFromAE');
    properParam = replaceCharacters(param);
    setPeoplePicker("People Picker", properParam);
    hideFldCtrl("Approval Sta

Response.TransmitFile() Firefox problems


My company is in the final development stages for a web application that includes a couple of features that allow for uploading and downloading user document files.  We've recently identified a problem in these features when users download and view a document in Firefox.  The download and viewing work fine, but as soon as the user closes the document and attempts to navigate to a different page in the application, Firefox throws up a page that says:

 XML Parsing Error: not well formed

Location: (URL of page)

Line number: X, Column: X

[a snippet of markup from the page]


I've tried numerous variations on the code we're using to do the download, but they all center on the following:


        string path = Server.MapPath(UIUtils.GetRepositoryPath(custNm)) + fileId + ArtifactRevision.FileExt;
        FileInfo file = new FileInfo(path);
        if (!file.Exists)
            throw new ApplicationException("Missing repository file");

        fileName = fileName.Replace(' ', '_');
        Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
        Response.AddHeader("Content-Length", file.Length.ToString());
        Response.ContentType = contType;

FireFox File Upload error


Hi to all ,

this is srinivas,

i have been trying for uploading a file . it works fine in INTERNET EXPLORER  not in FIREFOX.

firefox browser fileupload control takes only file name ,not entire path. so ERROR  is file not found error thrown at run time.

(i dont want answers which suggests me to do SAVEAS file in local disk then upload.)

please post another answers.

  hope u all understand my question .

thanks in advance.

Code write file asp.net 2.0 is working in firefox but IE not working.

If Not IsDBNull(ext) Then                                        ext = LCase(ext)                                    End If                                    Select Case ext                                        'Case ".htm", ".html"                                        '    type = "text/HTML"                   

CSS font is working in FireFox but not in Internet Explorer 8.0

Hi All, I tried a lot but I could not figure out why the IE is not taking font size and name in to effect from CSS. In firefox my website could be seen very nice but in IE it is little bit unshiny and font size is bigger For the difference which I am talking about could be seen  if your PC have both firefox and IE installed. Please go to http://www.nymidtowndentistry.com open it in FF and IE and you could see the font and alignment related change. All these settings are in body element of CSS. Do you any idea regarding this? Any help would be appreciated. Thanks for your time. -Hitesh  

BrowserInteropHelper.HostScript gives null value in Firefox

Hi,    I tried to pass a value from .xbap to host page(which contains Iframe in which .xbap is hosted).I used following code.      Dim script = BrowserInteropHelper.HostScript             script.GetFolderPath(FBD.SelectedPath)     Its working fine in IE but not working in Firefox.     Can anybody tell whether BrowserInteropHelper object works in firefox or not?If not what can be alternative?   Regards, Mehul
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