asp.net mvc - MVC IE9 Issue - breakpoints in view not being hit -


i have weird problem on site happens in ie9 - have js code need add page ie9 sort out placeholders. code not getting added , don't know if bug ie9 or mvc.

the problem put code script @ top of view - gets added session gets rendered on master template, in ie9, view not being hit code doesn't rendered. have put breakpoint onto view , visited page in browsers. breakpoint gets hit , moves onto master layout in every browser except ie9 breakpoint missed (no matter put in view) , master layout loaded first.

however if postback on page, view hit , script render.

has had problem before or know causes it

update

the code in controller isn't hit in ie9 either. caching problem - if so, how stop mvc caching page

okay, further update in ie9, have noticed url being loaded http://localhost/quote/#/quote/form/ in every other browser url correct one: http://localhost/quote/form/. if go correct url page works in ie9.

is caused jquery mobile ajax enabled option?

the error caused # being added url. found if entered following code before jquery mobile script:

 <script type="text/javascript">     $(document).on("mobileinit", function () {         $.mobile.ajaxenabled = @html.raw(request.browser.ismobiledevice ? "true" : "false");     }); </script> 

it solved problem


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -