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

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

iframe function working in firefox but not working in internet explorer

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

I have a page where it will store temporary data in gridview,before we send the values to database.The values in temporary table gridview will give a link to google,where it will search the word and display results in iframe.
This works fine in firefox,but not working in internet explorer.
Is there any ways to overcome this guys?

Here's my aspx code :


    <td class="style1">
    <asp:Label ID="Label1" runat="server" Text="Caller Info :"></asp:Label>
    <td style="width: 100px">
    <asp:TextBox ID="TxtName" runat="server" class="cls" onekeypress=""  autocomplete="off" ToolTip="Press Enter key for new input"></asp:TextBox>
  <td class="style1">
      <asp:Label ID="Label2" runat="server" Text="Date :" Visible="False"></asp:Label>
  <td style="width: 100px">
  <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" Visible="False"></asp:TextBox>


View Complete Post

More Related Resource Links

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  

Login not working in Internet Explorer


Hey guys, i have made a login page for my website....my website is working very fine in google chrome..

but when i use it on Internet Explorer, it is not getting beyond log in page. 

I guess the problem is it automatically encrypts the page , but then not able to fetch the data....


if used the following code on the login

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        sql3 = "Select * from login where username='" + TextBox6.Text + "' and password='" + TextBox7.Text + "'"
        If con.State = Data.ConnectionState.Open Then

POP up window not working properly in internet explorer


Hi ,

Developing a asp.net c# web site.

I need to open a popup new window when the user clickes a link button.

The following code is written in the click event of the link button.

ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "window.open( 'Instructions.aspx', null, 'height=400,width=600,status=yes,toolbar=no,menubar=no,location=no' );", true);

Works fine with firefox. When I try to open this in internet explorer it does not allow to maximise the pop up window ( The maximise is disabled)

I also tried without giving the height and width of the pop up window. But it also failed. Code is as follows.

ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "window.open( 'Instructions.aspx', null, 'status=yes,toolbar=no,menubar=no,location=no' );", true);

Any suggestions will be greatly helpful.


internet explorer has stopped working wss3


Hi All,

I have a user with Windows 7 64bit, Office 2010 Ent and IE8, that has a repeating issue when browsing/opening files from his WSS3 site, The IE window crashes and he gets the "internet explorer has stopped working" message.

Any thoughts?

Thanks a lot in advance

javascript function is not working with Firefox



    Javascript function is not working with Firefox. Its working fine with Chrome + IE.


function rdblstSec5SystemOnly_SelectedIndexChanged()
    var rdblstSec5SystemOnly = document.getElementsByName('<%= rdblstSec5SystemOnly.ClientID %>');
    var SelValue;
    //loop through the items in radiobuttonlist
        for (var j = 0; j < rdblstSec5SystemOnly.length; j++)
            if (rdblstSec5SystemOnly[j].checked) 
                SelValue = rdblstSec5SystemOnly[j].value.toLowerCase();
                if(SelValue == "yes")
                     trSec5ProductOrderForm.style.visibility = "hidden";
                else if(SelValue == "no")
                     trSec5ProductOrderForm.style.visibility = "visible";

<asp:RadioButtonList ID="rdblstSec5SystemOnly" runat="server" RepeatDirection="Horizontal"
                                                            <asp:ListItem Text="Yes" Value="Yes" />

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++)

javascript function not working with datalist


I have a datalist and there is a check box within this datalist in a .ascx page.  But I have to have an image out side the datalist.  So here is the code and its not owrking.  When I click on the image, I dont see any alert box. 


<script Language="JavaScript" type="text/javascript">


function validate_checkbox()



// set var checkboxSelect to zero

var checkboxSelect = 0;

var sProducts = "";


var multiCheck = window.document.forms["frmCompare"].CompareCheck.length;


if (multiCheck != null)


    // Loop from zero to the one minus the number of checkbox button selections

    for (counter = 0; counter < window.document.forms["frmCompare"].CompareCheck.length; counter++)


        if (window.document.forms["frmCompare"].CompareCheck[counter].checked)


            var seperator = (checkboxSelect > 0)?",":"";

            sProducts += sep

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"                   

javascript not working in iframe on remote site

<html> <body style="background-color: White;"> <form name="ctl01" method="post" action="adv_links_addbycustomer.aspx" id="ctl01"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/</div> <div> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/dfdafa" /> </div> <div style="background-color:White;"> <span id="lblMsg" class="ErrorText" style="font-weight:bold;"></span> <center> <span id="Label1" style="font-size:X-Small;font-weight:bold;">Valid Urls</span> <select name="DropDownList1" id="DropDownList1" style="background-color:#EFEFEF;border-color:#898989;border-width:1px;border-style:Solid;font-size:8pt;padding:0px;"> <option value="0"> - Select - </option> <option value="http://www.fha-home-loans.us/index.htm">http://www.fha-home-loans.us/index.htm</option> <option value="http://www.fha-home-loans.us/jumbomortgage/apply.htm">http://www.fha-home-loans.us/jumbomortgage/apply.htm</op

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>

Javascript Error in Internet Explorer but works fine in Firefox

Hi All,i was working on one of the project as it is working fine in Firefox but it is giving the javascript exception in internet explorer.Errror:  Error says  "s" is undefined in the s.currencyCode="USD" line but "s" is defined in the external javascript file  s_code.jsCan anyone suggest the solution for this issue:Please find my code where the error is displayed <script type="text/javascript" language="JavaScript" >var s_account="mnsdev"</script><script type="text/javascript" language="JavaScript" src="http://media.world.com/ads/usen/rpt/Omniture/s_code.js"></script><script type="text/javascript" language="JavaScript" >s.currencyCode="USD"s.charSet="ISO-8859-1"s.SEMct = s.getQueryParam('s_kwcid');s.SEMct = s.getValOnce(s.SEMct,'SEM_ct',0);s.clickPast(s.SEMct,'event9','event10');s.SEMvar=s.getQueryParam('s_kwcid');s.SEMdate=new Date;s.SEMdate.setTime(s.SEMdate.getTime()+60*86400000)if(s.SEMvar){s.c_w('SEM_ck','1',s.SEMdate)}s.SEMchk=s.c_r('SEM_ck');if(s.SEMchk&&s.events)s.SEMok='ok';if(s.SEMvar||s.SEMok) s.t()

ondeactivate="" onactivate="" events not working in firefox 3.6

Hi    I am working with the following code this code working fine with IE7 But not working with  fireforx 3.6 Functionality is when I click on Dive (textarea) tag its shows AlertMe button and Share button and textarea height will change and when I click outside of my Dive tag textarea size will set to old size and buttons will hide. In IE7 its works fine but in Firefox 3.6 ondeactivate="SetOldSize();" onactivate="SetNewSize();" this functions are not working <body>    <h1>       Textarea Demo</h1>    <form id="form1" runat="server">        <div>            <table border="0" height="100px" width="500px">                <tr>                    <td style="vertical-align: top">                        <div style="width: 520px; border: 0px" onclick="SetNewSize();" ondeactivate="

WCF function call in page load not working asynchronously

Hi all, I am trying to implement the WCF async function call in my page load event but, it not working asynchronously. Which means page content is displayed only after the asynchronous event is completed. This is my code         protected void Page_Load(object sender, EventArgs e)         {             if (!IsPostBack)             {                 ServiceReference1.Service1Client srv = new WebApplication1.ServiceReference1.Service1Client();                 srv.GetListCompleted += new EventHandler<WebApplication1.ServiceReference1.GetListCompletedEventArgs>(srv_GetListCompleted);                 srv.GetListAsync();             }         }           void srv_GetListCompleted(object sender, WebApplication1.ServiceReference1.GetListCompletedEventArgs e)         {         

Possible bug: Calendar views browse month function not working when list is inserted as webpart.


Inserted a custom list with a calendar view on a page as webpart. Browse month function does not work, there is a postback but month is still the current month instead of the next or previous.

Is this a know issue/bug?

hide gridview column using javascript. working in ie and firefox but In firefox, gridview data is sh


function EnableDisableGridViewColumn() {
               var AdvanceSearch = document.getElementById('<%= chkboxlist1.ClientID %>');
               var chkList = AdvanceSearch.getElementsByTagName("input");
               var dgTest = document.getElementById("gridview1")
               if (dgTest != null)
                   for (var i = 1; i < dgTest.rows.length; i++) {

                       if (chkList[0].checked == true && chkList[1].checked == true) {
                           dgTest.rows[0].cells[0].style.display = "block";

InputFormTextBox not working in firefox


Hello All

I am using InputFormTextBox control of sharepoint for HTML input in to list

I am getting proper display of control in IE but not gettiing in Firefox Also in IE i am not able to set width of control.

Please let me know if any alternate sharepoint control is there which acts as ritchtext editor and does not have browser compatability issue and plz anybody help with yours expert comments on it.


Thanks & Regards

Mrugank Dholakia

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?



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