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.
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.
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. (more...)
To clean selected row in GridView control you should set its property SelectedIndex to -1.
GVCtrl.SelectedIndex = -1;
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 current database. (Microsoft SQL Server Error" 15023). (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>. (more...)
Simple console application, which get data from SharePoint list and displays it. It's very good solution if SharePoint is used as a storage of rates, catalogs, libraries etc.
To use SharePoint Client model you should add references to Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll in your solution. (more...)
By default Asp.net Calendar control shows dates of current month. For some tasks you may need to show another month by default. You can do it from code behind in one string. (more...)
When I created my first Asp.net web application with UpdatePanel, I wanted to use jQuery for some features. I wanted to make a button "transform", and when you click it, the text in UpdatePanel became modified via Javascript. I used jQuery framework also here. Soon I found out that it's not the simple task. (more...)
The task. We have a text with GUIDs and we want to get all the GUIDs.
Tools. We'll use Regular Expressions in C# for this task. (more...)
The task. We have 3 separated text files, for example, web server logs. For more comfortable analyze we want to join them into one file. Below my simple solution for this task in C#.
The main steps of script are: (more...)