Buttons do not submit anymore in IE

Last post 12-31-2007 1:59 AM by meibbu@yahoo.co.in. 8 replies.

Sort Posts:

  • Buttons do not submit anymore in IE

    11-05-2004, 12:43 PM
    • All-Star
      30,305 point All-Star
    • PLBlum
    • Member since 06-28-2002, 1:20 PM
    • Boston, MA
    • Posts 5,344
    • TrustedFriends-MVPs
    I see this posted almost every day. There are two reasons that buttons stop working in IE (but continue to work on other browsers), both related to client-side scripting.

    1. On the server with the problem, run this command:
    aspnet_regiis.exe -c
    from [windows]\microsoft.net\framework\[version]

    It copies the correct files for the version of ASP.NET you are running into each domain defined in IIS.

    2. There is a bug in specific releases of ASP.NET 1.1 that these blogs help you resolve:
    http://thomasfreudenberg.com/blog/archive/2004/04/05/CommentProblemSolved.aspx
    and
    http://weblogs.asp.net/pwilson/archive/2004/09/16/230591.aspx

    While I have your attention, please remember that client-side validation is only supported on DHTML browsers (IE and IE/Mac). Even those allow the user to turn off javascript. So you must ALWAYS be sure your server side does validation. Here's the rules:
    - The Page.Validate() method must be called to validate all controls. It is automatically called by the Button, LinkButton, and ImageButton when CausesValidation=true (which is the default). It calls this after Page_Load and immediately before the Click post back event.
    - Inside your post back event method, always test Page.IsValid to be true before saving.

    (You can get client-side validation with more browsers supported by using Professional Validation And More.)
    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Buttons do not submit anymore in IE

    12-17-2004, 12:11 PM
    • Contributor
      2,042 point Contributor
    • ojm37
    • Member since 07-30-2003, 7:31 PM
    • AZ
    • Posts 615
    Hmmmm. aspnet_regiis -c will not run on my machine. Says "You must have administrative rights on this machine in order to run this tool." My login is a member of the local administrator group.....?
    Owen
  • Re: Buttons do not submit anymore in IE

    12-23-2004, 11:51 PM
    • Member
      30 point Member
    • tatong
    • Member since 12-22-2004, 9:47 PM
    • Posts 6
    ojm37 maybe its just simply mean that you dun have the admin rights (figure out that u must be at ur work place instead using ur own pc), just simply call the HelpDesk of ur company or set admin rights to urself.

    i might be wrong ;)-
  • Re: Buttons do not submit anymore in IE

    02-26-2005, 9:58 PM
    • Member
      145 point Member
    • d2ekayak
    • Member since 09-06-2003, 1:59 PM
    • Posts 29
    I'm sorry if I am dredging up some old stuff, but I just ran across this problem recently. I understand the solution but I'm not sure how to apply it to my situation. I'm a newbie and working with limited resources. That is to say that my development environment consists of Windows XP Home, Webmatrix and its included mini-server.

    So I don't have IIS and I'm not sure how to apply the proposed solutions.

    Can you offer any guidance?

    Thanks in advance.
  • Re: Buttons do not submit anymore in IE

    02-27-2005, 5:56 PM
    • All-Star
      30,305 point All-Star
    • PLBlum
    • Member since 06-28-2002, 1:20 PM
    • Boston, MA
    • Posts 5,344
    • TrustedFriends-MVPs
    There are two proposals in the original message.

    1. Installing the script files using aspnet_regiis.exe -c.
    When you don't use IIS for your server, you only need to copy the correct script files from:
    [windows]\microsoft.net\framework\[.net version]\ASP.NETClientFiles
    to
    [your web app root]\aspnet_client\system_web\[.net version]\
    (where you create the folders starting at aspnet_client.

    2. The bug in ASP.NET 1.1 SP 1. If the blogs don't make it clear, some people have posted their edits to the WebUIValidation.js file on these forums. Search for "WebUIValidation.js".
    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Buttons do not submit anymore in IE

    04-26-2005, 12:19 PM
    • All-Star
      30,305 point All-Star
    • PLBlum
    • Member since 06-28-2002, 1:20 PM
    • Boston, MA
    • Posts 5,344
    • TrustedFriends-MVPs
    I just wanted to add Microsoft's Knowledgebase article on the ASP.NET 1.1 SP 1 bug to this thread: http://support.microsoft.com/default.aspx?scid=kb;en-us;889877
    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Buttons do not submit anymore in IE

    04-26-2005, 12:28 PM
    • Contributor
      2,042 point Contributor
    • ojm37
    • Member since 07-30-2003, 7:31 PM
    • AZ
    • Posts 615

    Hmmm. That KB article just says to run the aspnet_regiis.exe -c command. However, that did not fix the problem in my case. I had to go in and edit the WEBUIValidation.js file in the Microsoft Supplied scripts and change it back to something that works.  I found the information to do this at: http://thomasfreudenberg.com/blog/archive/2004/04/05/CommentProblemSolved.aspx

    Cheers,

    Owen
  • Re: Buttons do not submit anymore in IE

    06-15-2005, 12:10 PM
    • Member
      5 point Member
    • Jarwei
    • Member since 06-15-2005, 4:02 PM
    • Posts 1
    I had the same problem. After the patch my submit button didn't work.  I ran aspnet_regiis -c recommended by Microsoft and still didn't work.  I checked the submit button on firefox and worked without any problems.  Still didn't work for IE.  I search the web and clearing the Internet Explorer's cache and cookies was the solution to fix this.

    Here is the link where I got my fix from.

    http://jorriss.com/dottext/jorriss/archive/2004/10/26/348.aspx

    What a waste of an hour of my time :(
  • Re: Buttons do not submit anymore in IE

    12-31-2007, 1:59 AM

    Hello Guys... 

    My name is ibrahim.Working as software engineer in SCPL,Hyderabad,INDIA. I didn't tried above all the blogs explained.. i just take Html submit button named "inLogin" .And written a javascript function named "ValidateControls()". and it worked fine on IE as well as In forefox browsers.

    <script src="validation.js" type="text/javascript"></script> //my custom validation script file.
    <script type="text/javascript">

    function ValidateControls()

    {

     var usrid = document.getElementById("txtUserid").value;
    var pwd = document.getElementById("txtPassword").value;

    if (chkEMail(usrid,"Email-Id","Y") == "")

    {

    document.getElementById("txtUserid").focus(); return false;

    }

    else if(pwd == "")

    { alert('Please enter password'); document.getElementById("txtPassword").focus(); return false;

    } else { return true; }

     

    and call in in button click as below:

    < inputt type="submit" value="Submit" onclick="return ValidateControls()" id="inLogin" name="inLogin">

     

    Note :You dont need any custom validation file.... what ever you want to put ,you can put directly in javascript function...Make sure you have to use document.getElementbyId instead of document.all .... Its the big reason that microsoft asp.net validation controls are using document.all  which is not working  in non-IE browsers...

     

    Happy Programming

    Ibrahim.

     

    </script>
     

Page 1 of 1 (9 items)