-
This little cmd can be used to reset visual studio to its default factory settings.
-
Sometimes you would need some function which would give you equivalent ordinal representation for numeric values. This function would give you Ordinal Representation for passed numeric argument.
-
The other day I needed to replace some apostrophes in javascript. We can use standard string.replace("'", "");, however this will replace only the first occurrence, therefore a regex is the best solution.
-
The following code snippet shows how to concatenate multiple files into single file. In this function I am looping through the source file and appending them into the destination file.
-
In the following code snippet I am listing out all the sub folders present in the root folder. Here I will pass the root folder path to the GetListOfSubFolders function. Internally this function will call itself recursively to list out all the subfolders present in the root folder in addition to th...
-
In following code snippet I have tried to show the mostly required information from file path.
Using Path class we can easily find out the basic information we need from file paths such as File Name, File Extension, File name without exetension, File directory name etc.
-
Following code snippet shows you how to loop through the xml data using XML Linq.
-
Always we find need of generating XML data on fly. Using XML Linq it became very easy to prepare xml in runtime.
In the following snippet I have shown, how we can create the XML data in runtime using Linq document.
-
This sql function tells you hot to convert numbers to words using T-sql.
dbo.NUMBERTOWORDS('2345')
will return to you as
Two Thousand Three Hundread Fourty Five.
-
Below the code show how to highlight the search result in gridview.
When gridview is render that time 'HighlightSearch' is called for each result,which is highlighting the search string.
Please feel free to ask any question related to this code or anything about sharepoint/.net.
Thanks
Happ...
-
Create a CSS file "grid.css" within a folder "css" with a class "grid-header".The css folder is under the root directory
Call this CSS File from your page which is contain your grid
<link href="../css/grid.css" rel="stylesheet" type="...
-
To compare two dates without considering the time you have to use the Date object of the DateTime. Here is a quick example:
-
There are several ways to bind an excel file to a DataGrid/GridView. You can use ODBC, which I personally don't like at all. Or you can use the Aspose.Cells component. The component is not for free - HOWEVER if you are looking to just import a file, then there are no limitations. The limitations are...
-
Mars should be used in two core scenarios,
1) When using MARS results in cleaner looking code
2) When using Transactions and there is a need to execute in the same isolation level scope
Mars comes with a cost in fact there are a lot of hidden costs associated with this feature, costs in the clie...
-
This little sql can be used to update an job. I use this to reschedule the same job in the case it fails for whatever reason.
-
In this function you will see how to add a new calendar item using WebDav. To see how to get the existing items see this link: http://dotnetslackers.com/codesnippets/vb/HowtogetCalendaritemsfromExchange2003usingWebDav.aspx
-
This is a little function, that I use to retrieve the latest calendar items for a specific date range.
-
Simple file downloading client code to download a file from a given URL.
It works with .NET framework 2.0 onwards.
Regards,
Pasan Indeewara
-
The Function takes integer value as argument and gives Their equivalent words. e.g
input :101
output:One Hundred one
-
Sometimes sending mails using an SMTP server is not feasible for a project’s requirement. We may want to utilize the MX record of the recipient’s domain name. The following technical tip shows how to send mails using mail servers of recipient’s domain. We will be using Aspose.Network for doing this.
-
A simple and effective algorithm for sorting integers in C#
-
This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or charts within it. You will be using Aspose.Cells and Aspose.Pdf libraries for XLS2PDF conversion. Please also make sure to save your Aspose.Pdf XML file on disk, not in a stream because Aspose.Pdf XML ...
-
Asynchronous Echo Server is created using C# and XF.Server API.
Network events are processed using I/O completion port.
-
The simplest way is to have a target addressable text range (any html tag with and id or name set) that we can reference and write into.
-
For the most part this method, when added to our application object or page class, makes it so we can ‘inject’ ECMA script to our hearts content. This includes code that is executed upon evaluation so we don’t have to call out again to execute some function. There are limits to what you can do (i....