Monday, July 11, 2011

split view state into multiple fields



split view state into multiple fields:

IIS can be set for max hidddn field data view state in case of this when browser submit the page
to iis than it gives error. So we need to split the data in to multiple view state
it can be set in web config file like we set the 100 KB of each view sate if it is bigger than it will split in to new view state



<pages maxPageStateFieldLength="100"></pages>
</system.web>


Thursday, July 7, 2011

How to disable right click on web page with jquery; how to disable right click in javascript; how to disable right click in asp.net

We have to bind contextmenu and return false from this.
This function also handel right click on images of web page.
 <script language="javascript" type="text/javascript">
    $(document).bind("contextmenu",function(e){    
      return false;
     });
    </script>


Thanks
Mahesh