Opening Web Page in IE6 Triggers an OnClick Event - asp.net

I have written a web page that provides a drop down list of reports that can be viewed. The fiddle is here: http://jsfiddle.net/ZrdUY/1/. The image in the fiddle is exactly what you see when you open the page in Firefox (13.0.1) but when the page is opened in IE6 it seems that the "View Report" event is triggered with the visible selection in the drop down list thus immediately rendering that report.
Any advice is appreciated.
Regards.

Weird. The problem simply went away.

Related

Firefox not displaying panel on refresh or postback

I have a curious issue. I have an ASP.NET web page that has a RadioButtonList with three RadioButtons. RadioButton1 hides both Panels. RadioButton2 displays Panel1 and hides Panel2 then RadioButton3 hides Panel1 and displays Panel2. Pretty straight forward. All of the logic that hide and display the Panels is in C# in the Code Behind. All of this works great in Chrome and IE. In Firefox; however, if you refresh the page in any way (another controls posts back or by hitting the browser's refresh button) while say RadioButton2 is selected and Panel1 is displayed the page comes back with the RadioButton2 still selected but both Panels are now hidden. In Chrome and IE a refresh of the page brings it back to it's original state. Meaning that all of the controls are set to their original values and RadioButton1 is selected and both Panels are hidden. Not necessarily ideal but a whole lot better than having the RadioButtons and Panels come back out of sync.
Not sure where to begin looking on this one. None of this is done in JavaScript. The panels and RadioButtons are not generated in code behind they are in the static HTML portion of the page.
Thoughts?
This sounds like you might be dealing with a page caching issue in Firefox. Have you tried disabling page caching for this page? For example, see this answer: Disable caching in Fire Fox in ASP.NET and C#
This is not really the answer I was hoping for because it seems incomprehensible to me that in 2014 we still have issues with browser inconsistencies but I put some code in the page to handle this and force it back into the proper state. This has solved the immediate problem.

Asp.net prevent modal popup to get displayed while clicking on browser back button

GoodEvening Everyone,
I am having one asp.net application which contains many links. some of the link displays modal popup Now if i move to link which nabvigates me and click on browser back button so modal popup gets display which i dont want. i need the previous page should get displayed instead of modal popup if i click on browser back button
for example
i clicked on link1 - navigated to page2
i clicked on link2 - displayed modal popup
i click on link3 - navigated to page3
Now if i click on browser back button so modal popup get displays instead of which i want the page2(previous page before the modal popup ) should get displayed.
So please let me know is this possible and how its possible.
It will be appreciated if some one provide me code to do this...
Let me know in case of more information required
There are several reasons this might be happening.
It might be that you are setting some state flags that persist between pages that influence the modal popups visibility. If you need help with this we will need some more details and preferably code samples.
It might be a browser caching issue. When you hit the back button the browser might be fetching the page from it's cache (not the server) with the popup visible. To test this you could disable the browsers cache and run through your process. If this proves to be the reason you can disable browser caching for your site by adding some meta tags (you'll find the exact tags on Google easily)

ASP.NET - Tab order not working after ajax postback - Goes to the browser url

I have used Update Panels in my ASP.net webpage. I have a modal popup. But the tab index is set to -1 for all the parent page controls once the modal popup comes in picture.
Does anybody has resolution for this. I tried again reseting the tab index through javascript......But its not working(may be DOM is not getting refreshed)
Regards,
Justin Samuel
I have seen this happen when you have multiple ModalPopupExtender controls open at the same time. If you hide whichever popups you aren't currently using, that fixes the problem. (Or at least it did in my case.)

stop postback for RadEditor with spellcheck

When I use a RadEditor I want to enable the editor's spell check (working thus far). After a spell check the user can either click on the radmodule (toolbar thing) to either "finish spellcheck" or "cancel." Which is all fine and dandy except the "finish" button causes a postback!! I don't want that at this point!! "cancel" more or less does what I want to happen - I mostly just want a "done" or a way to stop the postback. Does anyone have any clues?
I've tried an Update panel but that just grays out the text area after it does the update.
The "finish" button should not do a postback - verify this by going to the Telerik online demos - http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx If it does postback, then there is a problem with some JS code on the page or some customization you did on the editor. Try starting with a blank editor page in your project and see if the behavior changes.
I think its cause we have a relatively old version of Rad now... Talked to my boss about buying new licenses..

postback validation causes an alert dialog to be displayed

For some strange reason, an alert dialog with the text title "Message From Web page" and message "-" displays when posting back a form with validation. There are no custom validation scripts that display an alert window. I am debugging JavaScript using IE development toolbar? Is it possible to break into the code that displays the alert box? So far I have been unable to do so.
CTRL-SHIFT-J (also under the Page > Developer > Debug JavaScript menu item) in chrome to debug javascript. Debuggin in chrome is easier than IE
the validation error was displayed by validation summary control with no display.
Thanks for taking the time.

Resources