Search code examples
jqueryasp.netvb.netjquery-mobile

Losing Bootstrap CSS after postback


there is a dropdown which is binded to a function which calls another main function, the page then postbacks and the css of all the controls gets removed automatically.PLS HELP I AM STUCK FOR HOURS NOW!

NOTE : after postback the data is binded automatically as you may see in picture 2 Before postback

Using following scripts:

<link rel="stylesheet" href="../css/jquery-mobile-slide-menu.css" type="text/css" />
<script type="text/javascript" src="../js/jquery-mobile-slide-menu.js"></script>
<link rel="stylesheet" href="../css/mobile-friendly-tooltip.css" type="text/css" />
<script type="text/javascript" src="../js/mobile-friendly-tooltip.js"></script>

Below is the picture before postback BEFORE POSTBACK

Below is the picture after postback.

After Postback


Solution

  • i have just found out that reloading js file does the job!, due to partial postback, the div and span got removed, got all those with reloading js files.

    following link helped alot. Reload javascript file after an AJAX request