PostBack issue in Firefox???

Rate It (1)

Last post 11-17-2006 5:18 AM by Jasson_King. 1 replies.

Sort Posts:

  • PostBack issue in Firefox???

    11-16-2006, 3:15 AM
    • Member
      45 point Member
    • ikhvanje
    • Member since 06-30-2006, 2:17 AM
    • Posts 9

    I have an image button in the page HotelRulesDashboard.aspx which references to a master page Dashboard.master. I set the PostBackUrl of my image button to ACCheck.aspx. In Dashboard.master, I have another image button Go.gif. I set the Click event handler of this button to "GoButton_Click". In Firefox 2, I open HotelRulesDashboard.aspx, then I click on the first image button to open ACCheck.aspx. After I'm done viewing ACCheck.aspx, I press the browser's Back button to go back to HotelRulesDashboard.aspx. When I click the Go button, I expect the function "GoButton_Click" to be invoked, infact I was sent back to ACCheck.aspx. These pages work fine in IE. What could be my problem? Can somebody please help?

    Thanks, 

     Linh Ngo
     

  • Re: PostBack issue in Firefox???

    11-17-2006, 5:18 AM
    Answer

    Sometimes one control in the web form works fine in IE but not in FireFox.There are also some controls in a web form working fine in FireFox,not in IE.For example,if you have more than two panels in a web form,they can be displayed in order in FireFox,but inorder in IE 7.0.There are some differences among different browsers such as IE,FireFox,Opera,Safari.We should try to modify our source code to fit for different browsers.

    Try to debug your source code and check if the image button event handler is called when you click the button in master page.

    Its a pain when your client says "My website must be compatible with all the Browser",
    "Well thats easy to say but Are you the one who is coding it."
    The same HTML code which works well in IE6.0 wont work exactly the same Mozilla.
    Check out this link http://www.howtocreate.co.uk/tutoria...?tut=0&part=16 which talks about obtaining the window size in different browsers.
    Being a .NET developer you'll be faced with a lot of incompatibility issues with Mozilla,Netscape,IE.
    In Netscape,If you use Frameset and reference the next frameset with a query string ,its a pain since in Netscape the tags will be opened as a new window.But there is an option available in the browser properties to disable it.
    Styles will also give you a headache.

    Read this Blog,
    http://west-wind.com/weblog/posts/188.aspx
    I'm not sure what to advice you for browser incompatibility,The only thing I can say is what ever issues you face you can solve it.There is always a work around.
     

    Wish this can give you some helps. 

Page 1 of 1 (2 items)