Add-Type. Create .NetFramework Class equivalent in PowerShell
There’s a possibility to create and use .NetFramework class in PowerShell via cmdlet “Add-Type”. You should use New-Object cmdlet to instantiate objects. Read more»
There’s a possibility to create and use .NetFramework class in PowerShell via cmdlet “Add-Type”. You should use New-Object cmdlet to instantiate objects. Read more»
You can merge Excel cells in 3 simple steps: Select a range of cells. Right click on the selected cells and then choose Format Cells (Figure 1) Go to the Alignment tab and check the checkbox “Merge cells” (Figure 2). The other way to merge cells in Excel is via Excel Ribbon. This way […] Read more»
Excel has a huge number of tools for customizing text and tools to count data. So, one of useful things is to rotate text on any angle. It can be useful for customizing table headers. Read more»
Generic handlers have an extension .ASHX. It’s a good solution to render documents or images for user on server-side after user requests, not web page. Generic Handlers solution (.ashx files) are not directly supported by Visual Studio 2010 for SharePoint projects. But there’s a little trick for this. Read more»
During long use of Microsoft products, I got a habit that to update Microsoft Office I need to download Service Pack for my MS Office version. But in MS Office 2013 I can easily press some buttons for updates. Read more»
Source: a lot of money values returned from SQL as strings. For example, “1500312.32”, “2382938.12”, “283727361.10” etc. The task: display money values in format “1 500 312.32”, “2 382 938.12”, “283 727 361.10”, etc. Read more»
There are some tricks with GridView control on Asp.net. It’s really cool tool if you know it. The tricks are about how to add LinkButton to each row and how to focus the GridViewRow where LinkButton was clicked. Read more»
To clean selected row in GridView control you should set its property SelectedIndex to -1. GVCtrl.SelectedIndex = -1; Read more»
When you restore a database from backup to your SQL server in test environment, you will try to add Role to a restored database for user. At this time you may get the error message: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo). User, group or role ‘UserName’ already exists in the […] Read more»
In SharePoint timer job history I have noticed that there’s the error in starting User Profile synchronization: Could not connect to http://spsrv:5725/ResourceManagementService/MEX. TCP error code 10061: No connection could be made because the target machine actively refused it <ip-adress:port>. Read more»