You must Sign In to post a response.
  • Category: ASP.NET

    Linkbutton not firing in FireFox

    hai all,
    My Linkbutton not firing in firefox but in IE working fine.
    How to solve this issue?
  • #687535
    Can you please post the HTML code of the link button so that the issue can be identified.

    By the way there is no issue with the link button in Firefox.

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #687539
    Hi,

    Are you using some JavaScript on link button??
    Please provide some details of your issue with relevant code.

    Hope it'll help you.
    Regards
    Ajatshatru

  • #687554
    Hi Anil Kumar Pandey
    here that HTML Code.......
    issue is this link button it is User control
    -------------------------------------------------------------------------
    <shri:commonbutton ID="shriCommonBtn" runat="server"
    OnPrintClick="shriCommonBtn_PrintClick" />
    ------------------------------------------------------------------------

    <%@ Page Title="" Language="C#" MasterPageFile="~/SA_Default.master" AutoEventWireup="true" CodeBehind="CIS_RPT_MISReports.aspx.cs" Inherits="SystemAdministration.CIS_Portal.CIS_RPT_MISReports" %>

    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

    <%@ Register Src="~/UserControls/UserButton.ascx" TagPrefix="Shri" TagName="Button" %>

    <%@ Register Src="~/UserControls/UserConfirmButton.ascx" TagPrefix="Shri" TagName="UserBtn" %>
    <%@ Register Src="~/UserControls/UserButton.ascx" TagName="CommonButton" TagPrefix="Shri" %>
    <%@ Register Assembly="SVSControls4.0" Namespace="SVSControls4._0" TagPrefix="cc1" %>

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

    <script src="../SCRIPTS/PickListHelp.js" type="text/javascript"></script>
    <script type="text/javascript" src="../SCRIPTS/PopUpPickList.js"></script>


    <script language="javascript" type="text/javascript">
    function OpenList() {
    var Action = '<%= M_strcomman %>'
    var Userid = '<%= M_struser %>'
    callPopUp('SA_USP_CommonSearch', '<%=txtBranch.ClientID %>', Action, 'BranchMaster', 'CLIENT', 'Branch', Userid);
    }
    function ClearAll(str) {
    str = "Do You Want To " + str + ""
    if (confirm(str) == true) {
    document.getElementById('<%=txtBranch.ClientID%>').value = ""
    document.getElementById('<%=txtEnrolledDate.ClientID%>').value = ""
    document.getElementById('<%=txtToDate.ClientID%>').value = ""
    }
    else {
    return false;
    }
    }
    function ClearAllControls(str) {
    str = "Do You Want To " + str + ""
    if (confirm(str) == true) {
    document.getElementById('<%=txtBranch.ClientID%>').value = ""
    for (i = 0; i < document.forms[0].length; i++) {
    doc = document.forms[0].elements[i];
    switch (doc.type) {
    case "text":
    doc.value = "";
    break;
    case "checkbox":
    doc.checked = false;
    break;
    case "radio":
    doc.checked = false;
    break;
    case "select-one":
    doc.options[doc.selectedIndex].selected = false;
    break;
    case "select-multiple":
    while (doc.selectedIndex != -1) {
    indx = doc.selectedIndex;
    doc.options[indx].selected = false;
    }
    doc.selected = false;
    break;

    default:
    break;
    }
    }
    }
    else {
    return false;
    }
    }

    function ValidationUserGo() {
    var str1 = document.getElementById('<%=txtEnrolledDate.ClientID%>').value;
    var str2 = document.getElementById('<%=txtToDate.ClientID%>').value;
    var dt1 = parseInt(str1.substring(0, 2), 10);
    var mon1 = parseInt(str1.substring(3, 5), 10);
    var yr1 = parseInt(str1.substring(6, 10), 10);
    var dt2 = parseInt(str2.substring(0, 2), 10);
    var mon2 = parseInt(str2.substring(3, 5), 10);
    var yr2 = parseInt(str2.substring(6, 10), 10);
    var date1 = new Date(yr1, mon1, dt1);
    var date2 = new Date(yr2, mon2, dt2);

    if (document.getElementById('<%=txtEnrolledDate.ClientID%>').value == "") {
    alert("From Date is Blank");
    document.getElementById('<%=txtEnrolledDate.ClientID%>').focus();

    return false;
    }
    else if (document.getElementById('<%=txtToDate.ClientID%>').value == "") {
    alert("To Date Is Blank");
    document.getElementById('<%=txtToDate.ClientID%>').focus();

    return false;
    }
    else if (date2 < date1) {
    alert("From date cannot be greater than To date");
    return false;
    }
    return true;
    }

    // function Disable() {

    // // if (event.button == 2) {
    // // alert("Right Click Disabled")
    // // }
    // }
    // document.onmousedown = Disable;
    </script>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top">
    <td align="right" valign="middle">
    <shri:commonbutton ID="shriCommonBtn" runat="server"
    OnPrintClick="shriCommonBtn_PrintClick" />
    </td>
    </tr>
    <tr>
    <td class="TitileText" style="border-top-width: 1px; border-left-width: 1px; border-bottom: black 1px solid;
    border-right-width: 1px;" colspan="2" align="center">
    <asp:Label ID="lblTitle" runat="server" CssClass="TitileText" Text="CIS Reports"></asp:Label>
    </td>
    </tr>
    </table>
    <fieldset>
    <center>
    <table cellpadding="2" cellspacing="2" border="0" width="80%">
    <tr align="left">
    <td align="left">
    <cc1:SVSLabel ID="lblBranch" Text="Branch" runat="server"></cc1:SVSLabel>
    </td>
    <td align="left">
    <cc1:SVSTextBoxReadOnly ID="txtBranch" runat="server" MaxLength="30" ToolTip="Characters,MaxLength 30"></cc1:SVSTextBoxReadOnly>
    <%--<img id="imgBranchPick" runat="server" alt="Select Branch Code" onclick="PickList('BranchRep');" src="../Images/browse.gif" />--%>
    <img id="imgBranchPick" runat="server" alt="Select Branch" onclick="OpenList();"
    src="../Images/browse.gif" />
    </td>

    <td>
    <cc1:SVSLabel ID="lblDate" Text="From Date" runat="server"></cc1:SVSLabel>
    </td>
    <td align="left">
    <cc1:SVSTextBox ID="txtEnrolledDate" runat="server" ToolTip="Enter in (dd /mm /yyyy) format"
    TabIndex="4" MaxLength="10" ReadOnly="True"></cc1:SVSTextBox><rjs:PopCalendar ID="Cal_EnrolDt" ToolTip="Select Date of Joining"
    runat="server" Control="txtEnrolledDate" Separator="/" />


    </td>
    <td>
    <cc1:SVSLabel ID="lblToDate" Text="To Date" runat="server"></cc1:SVSLabel>
    </td>
    <td align="left">
    <cc1:SVSTextBox ID="txtToDate" runat="server" ToolTip="Enter in (dd /mm /yyyy) format"
    TabIndex="4" MaxLength="10" ReadOnly="True"></cc1:SVSTextBox><rjs:PopCalendar ID="Cal_ToDate" ToolTip="Select Date of Joining"
    runat="server" Control="txtToDate" Separator="/" />
    <cc1:SVSButton ID ="btnFetch" runat ="server" ToolTip="Click To View"
    Text="Fetch" OnClientClick="javascript:return ValidationUserGo();" onclick="btnFetch_Click" />

    </td>


    </tr>

    </table>
    </center>
    </fieldset>

    <fieldset>
    <center>
    <table cellpadding="0" cellspacing="0" border="0" width="50%">
    <tr align="left">
    <td style="border: 1px solid #A3BB29; " >
    <center>
    <rsweb:ReportViewer ID="repviewBranch" runat="server" Font-Names="Verdana" CssClass="Report" BackColor="White"
    Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
    WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="700px"
    Height="500px">
    <LocalReport ReportPath="CIS_RPT_MISRep.rdlc" >
    <DataSources>
    <rsweb:ReportDataSource DataSourceId="ObjectDataSource2" Name="CIS_DS_MISRep" />
    </DataSources>
    </LocalReport>
    </rsweb:ReportViewer>
    </center>
    <br />
    </td>
    </tr>
    </table>
    </center>
    </fieldset>

    <fieldset style="visibility:hidden;">
    <shri:userbtn ID="UserBtn"
    ClearOnClientClick="javascript:return ClearAll('Clear');" OnClearClick="shriConfirmBtn_ClearClick"
    CancelOnClientClick="javascript:return ClearAllControls('Cancel');" OnCancelClick="shriConfirmBtn_CancelClick"
    runat="server" />
    </fieldset>

    </asp:Content>

  • #687558
    hi Ajatshatru

    I did'nt use anymore javascript on that Linkbutton
    when i postback that link button generating like this in Firefox only
    In IE this link button working fine it get firing.

    javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$cphDefaultMaster$shriCommonBtn$btnPrint", "", true, "", "", false, true))


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.