Click here to Skip to main content
15,908,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My page method does work in IE, but
why does my page method does not work in single click of asp button in firefox and in safari it does not work?
why does my page method does not work in firefox and safari?
function SendMail() {
      var user = document.getElementById('<%=UserName.ClientID %>');
      var val = user.value;

      var randomNumber = 12345;

        var nonRandomPassword = 23412;
        var toAddress = val;
        PageMethods.SendResetMailMessage(toAddress, randomNumber, nonRandomPassword, CloseWindow, OnFailed);

    }

    function CloseWindow(ret) {

      if (ret == "1") {
        alert(ret);
        var windowObj = window.self;
        windowObj.opener = window.self;
        windowObj.close();
      }
    }

    function OnFailed(error) {
      alert("Error in message");
    }
Posted
Updated 26-Nov-10 18:15pm
v3
Comments
raju melveetilpurayil 27-Nov-10 0:10am    
[Edit] edited for more readability [/Edit]
Dave Kreskowiak 27-Nov-10 9:36am    
You're going to have to edit your question and explain what "does not work" means. What DOES happen? What is SUPPOSED to happen? Are there anyn error messages? If you're having a problem with SendResetMailMessage, why did you post the code that called it and not the code that defined it?? Without these basic questions answered, it's impossible to tell you what happened.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900