Thursday, July 29, 2010

MOSS : Adjust size of list columns

Adjust the size of list columns

Add following code content Editor Webpart on the list page.

<script language="javascript">if(typeof(MSOLayout_MakeInvisibleIfEmpty) == "function") {MSOLayout_MakeInvisibleIfEmpty();}</script>
<style>
.ms-vh2 div table tr td
{
white-space: normal
}
</style>

Tuesday, July 13, 2010

"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."

Solution :
While running the code with RunWithElevatedprivileges,
1. SPSIte and SPWeb object should be created inside the delegate.
2. SPWeb object should be opened by giving URL explicitly. It should not open by COntextWeb method.