JQUERY post not working intermittently
<p>I have included follwoing libraies in my asp.net files following some few plugins </p>

<pre><code>//below is jQuery JavaScript Library v1.6.4
  &lt;script src="Scripts/jquery-latest.js" type="text/javascript"&gt;&lt;/script&gt;
//below is  jQuery JavaScript Library v1.5.2  
    &lt;script type='text/javascript' src="../Scripts/jquery.min.js"&gt;&lt;/script&gt;
// below is jQuery UI 1.8.16
    &lt;script type='text/javascript' src="../Scripts/jquery-ui.min.js"&gt;&lt;/script&gt;
</code></pre>

<p>now i have a post method in following code on my page</p>

<pre><code>     $(document).ready(function () {

         var id = '&lt;%=objLoginUser.UserId%&gt;';
         var postUrl = 'UserManagement.aspx?id=-1&amp;email=&lt;%=objLoginUser.EmailId%&gt;';
         if ($(document)[0].URL.indexOf("UserList.aspx") &lt; 0 &amp;&amp; $(document)[0].URL.indexOf("ReportOutput.aspx") &lt; 0) {
             if ($(document)[0].URL.indexOf("Login.aspx") &gt; -1) {
                 postUrl = postUrl + "&amp;login=1";
             }
             else {
                 postUrl = postUrl + "&amp;login=0";
             }
             **$.post(postUrl, {},
                                 function (data) {

                                     var val = data;
                                     val = val.replace(/__VIEWSTATE/gi, "STATE1");
                                     val = val.replace(/__EVENTVALIDATION/gi, "VALIDATE1");
                                     $("div#divUM1").html(val);
                                 });**
         }

         if ('&lt;%=objLoginUser.EmailId%&gt;' != '') {
             $("#lnkChangeProfile").click(function () {
                 ShowEditUserProfileBox('&lt;%=objLoginUser.EmailId%&gt;', id);
             });
         }
         else {

             $("#lnkChangeProfile").hide('fast');
         }

     });
</code></pre>

<p>This Post method works intermittently, some times when i remove/add some files or compile the project this stops working. Then i apply debugger inside this post method and do some editing and its starts working fine.</p>

<p>Is there some binding of Jquery with VS2010 project which get tampered and recovers later due to some reason.</p>

<p>Surprisingly when i debug it doed not break rather pass through the entire code but is does not go inside "<strong>function (data) {}</strong>". When it is working fine it goes inside "function (data) {" aslo and show value in data.</p>

<p>Please Suggest.</p>

<p>Thanks in Advance.</p>
