BlockConfirm doesn't work in FireFox

3 posts, 0 answers
  1. Mounir Maghraoui
    Mounir Maghraoui avatar
    24 posts
    Member since:
    Aug 2009

    Posted 27 Oct 2009 Link to this post

    Bonjour,
        I'm trying to use the blockconfirm function in an Hyperlink but it doesn't work in FirewFox.
    Is there any solution or idea?
    here my c#code:
    protected void Page_Load(object sender, EventArgs e) 
        { 
            LinkLogout.Attributes.Add("onclick", "return blockConfirm('" + Resources.Labels.MasterPageLblConfirmDisconnecting.Replace("'", "''") + "', event, 330, 100,'','Prescrire');"); 
    //.................... 

    here the asp.net code:
     <asp:HyperLink ID="LinkLogout" Text="<%$ Resources:Labels, MasterPageLinkLogout %>" 

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Oct 2009 Link to this post

    Hi Mounir,

    asp:hyperlink does not have a server-side click event - for such purpose you should use asp:linkbutton control.



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Mounir Maghraoui
    Mounir Maghraoui avatar
    24 posts
    Member since:
    Aug 2009

    Posted 30 Oct 2009 Link to this post

    asp:linkbutton invoke the reload of the page. I don't like to use it. I want just to use an Hyperlink an add the onclick event to it.
    What i have done is working correctly in IE. Although, in FF it doesn't work coz of the blockconfirm.
    How to make the blockconfirm working correctly in FF?

Back to Top