Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

how to clear the controls content completly using jquery/javascript which causing view state error before page submission to server in sharepoint

$
0
0

hi,

can any one suggest on below

In one of my webpart i am loading my custom user control using jquery ajax call.Where i got designed one dummy custom master master page and Application page for this call.Every thing works fine.But while submitting data to server on button click..etc.I was getting "view state error" due to the controls which  i loaded via ajax call.So i am trying to empty the content of this controls which causing error using Jquery as below:

 $('#myCustomDiv').html("");

But it is imeediatly leading to below javascript error.Where after my further button click on the page not getting worked.

Message: 'theForm.__SCROLLPOSITIONX' is null or not an object
Line: 355
Char: 5
Code: 0
URI: http://server:port/WebResource.axd?d=6iSunzSlyu4iXRG_o4zeQX3IveZEpphyurEWAtTdXZjYrSoOp91UiCQrfkIl1YQZzVLlTRcBsyXXdGn7y7XISCugFCQ1&t=634259264634565506


Message: Object doesn't support this property or method
Line: 2
Char: 76925
Code: 0
URI: http://server:port/_layouts/1033/init.js?rev=BjQJs0OCQh3Zfydsdw2MYw%3D%3D


Thanks & Regards, Krishna


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>