CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Location
    Michigan
    Posts
    2,222

    No postback on button click

    I have a 2.0 ASP.NET web form. I am using VB.NET. I have a web server button control on the form, btnSubmit. I also have a lot of server validation controls on the form to validate the fields.

    -----------------------------------------------------------------

    1. When I run the form using FireFox, everything works perfectly.

    2. When I run the form in IE and click the button, there is no post back to the server.


    What could be causing this? I thought it might be the javascript generated by visual studio on the page, but there are no errors in the javascript according to FireFox's firebug. I also doubled checked the html on the page to make sure there are no errors.


    I was reading that this was a bug in .NET 1.1 SP1, but this is 2.0. Any ideas on where to start?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: No postback on button click

    If the buttons type="submit" there is no JavaScript involved. Are you using a regular button with JavaScript to submit the form? If so, you need to use an actual submit button.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured