Monday 7 January 2013

Dialog is not a function in asp.net mvc

Guys you may get error when using jquery dialog function in your mvc application.It's because by default visual studio importing script which is old version script and also it's not importing jquery-ui-1.9.2.custom.js.

Dialog is function of ui js.

Here below you can see how js import by default in _layout.cshtml by visual studio. 




you have to change this and cut it and paste to top of the page because if you import jquery ui in top of the page then you may get the error that jquery is undefined. so as we are doing always put it to top of the page like as shown in below image. 



Now you guys have to update the version of js like below.



Now finally you guys have to update all new css version of ui inContent -->themes-->base

 

No comments:

Post a Comment