Lastest snippets

  • Select Attachment in PDF & Download Selected Attachment Using REST API

    This technical tip allows developers to download selected attachment in PDF file using Saaspose.Pdf REST API in your .NET applications. Saaspose.Pdf is a REST API to create, edit & manipulate PDF files. It also convert PDF file to DOC, DOCX, HTML, XPS, TIFF etc. You can create a new PDF either f...
    Wed, Aug 15 2012 8:12 PM by Sher Azam
  • Take screenshots automatically with GrabzIt

    Take screenshots with GrabzIt for free with the open source GrabzIt Library. This can be downloaded from: http://grabz.it/api/aspnet/download.aspx You will need to register here to get your application key and secret. http://grabz.it/register.aspx The snippet code below is the code requi...
    Thu, Jun 21 2012 4:31 PM by Dominic Skinner
  • Paging Query Using LINQ

    Using LINQ we can achive paging logic in your application much easier by exposing the Skip and Take methods. The Skip method enables you to skip a defined number of records in the resultset. The Take method enables you to specify the number of records to return from the resultset. By calling Skip an...
    Tue, May 29 2012 10:21 AM by Jayesh Sorathia
  • Read Email Messages from Thunderbird Mail Storage Using Aspose.Email

    This technical tip shows how to read messages from Thunderbird Mail Storage. Below steps are required to read the messages 1. Open the Thunderbird’s storage file in FileStream 2. Create an instance of MboxrdStorageReader class and pass the above stream to it’s constructor 3. Call ReadNextMessage(...
    Wed, Apr 18 2012 12:39 AM by Sher Azam
  • How to Reset the Identity Column of a table in Sql Server.

    Sometimes If we delete all data from Sql Server table having an Identity Column with Identity Seed as 1 and insert new value,we find that data Identity column value doesn't get reset and it starts from last number of the identity. If table were having 5 records and we insert new records after de...
    Wed, Mar 28 2012 11:47 PM by Akhil Mittal
  • Algorithms for get overlapped time ranges

    In the daily business, we need to know the overlapped time ranges among a big size of discrete time ranges to do further special business analysis. This algorithm has carried it out and it has been referenced in quite a few of our projects. Please feel free to let me know if there is room to improve...
    Tue, Feb 21 2012 3:27 AM by Zongying Cao
  • Access & Read Email Messages from MS SharePoint Document Library

    This technical tip shows how to read email messages from Microsoft SharePoint document library. For accessing the files from SharePoint document library, SharePoint SDK must be installed on the system, which provides the necessary API for logging in and accessing files from the document library. I...
    Mon, Feb 20 2012 2:18 AM by Sher Azam
  • Extented DataConversion

    The C# 3.0 extended method feature gives us great convenicence in coding. I think the code snippet below would be helpful to you if you have heavy work on the data conversion on the IDataReader. Here I just list the methods in my practice. And I will update the code snippet as soon as I have more c...
    Sun, Feb 12 2012 10:54 AM by Zongying Cao
  • Create & Download Email Messages from Public Folders of Exchange Server

    This technical tip shows how to download Messages from Public Folders of Exchange Server. Microsoft Exchange Server provides the facility to create public folders and post messages in it. You can use ExchangeWebServiceClient class of Aspose.Email to connect to the Exchange Server and read/download ...
    Thu, Dec 29 2011 4:17 AM by Sher Azam
  • Extract Text From a Specific Part of the Image Using Aspose.OCR

    This technical tip shows how to Extract Text from Specific Part of the Image. Aspose.OCR for .NET provides OcrEngine class to extract text from a specific part of the image document. The OcrEngine class requires following three items for character recognition: 1. Source Image 2. Language 3. Re...
    Thu, Nov 24 2011 1:29 AM by Sher Azam
  • Copy Worksheets with Tables, Charts & Images Within or b/t Workbooks

    This technical tip shows how to Copy or Move worksheets within or between workbooks. Sometimes, you do need a number of worksheets with common formatting and data entry. For example, if you work with quarterly budgets, you might want to create a workbook with sheets that contain the same column head...
    Fri, Sep 30 2011 3:31 AM by Sher Azam
  • How to replace a string without using REPLACE function using C#?

    This code snippet is used to replace the string without using the replace function using C#.Most of the times we get a requirement to replace the String with a certain string.
    Fri, Jul 29 2011 6:24 AM by HemanthKumar V
  • You may have seen Transact-SQL code that passes strings around using an N prefix. This denotes that the subsequent string is in Unicode (the N actually stands for National language character set). Which means that you are passing an NCHAR, NVARCHAR or NTE

    This code snippet is used to replace the string without using the replace function using C#.Most of the times we get a requirement to replace the String with a certain string.
    Fri, Jul 29 2011 6:21 AM by HemanthKumar V
  • How to retrive the Contact from gmail using Google API in Asp.Net?

    What are the Google Contacts APIs? The Google Contacts APIs allow client applications and other data consumers to request Google Contacts content. If read-only access is sufficient for your needs, then consider using the Portable Contacts API. If you need write access to Google Contacts, then ...
    Fri, Jul 29 2011 1:04 AM by HemanthKumar V
  • Reverse of a string without using String Function()

    This is a simple code snippet for reversing a string without using Reverse Function.For example we have a string "KUMAR" without using function we can reverse it using this code snippet.This code is given in both C# and Vb also.This is will be more helpful to the learners.If any queries pl...
    Thu, Jul 21 2011 5:20 AM by HemanthKumar V
  • Marking BarCode Regions in the Image

    This technical tip shows how to read the image and mark all the barcode regions, for all the recognized barcodes in the image. The barcode region is the part of the image that only contains the barcode itself. In a large image, it is possible that there are other texts or images along with the barco...
    Wed, Jun 01 2011 6:52 AM by Sher Azam
  • Extension methods for string hasing and ecryption

    This collection deals with strings security, with these extensions you can properly use hashing and encryption. Since MD5 and SHA1 are not consider secure any more, the hashing is done using SHA256 with a random salt. The salt can be hardcoded into your code or stored in a database. You can call the...
    Sun, May 15 2011 6:00 PM by Stefan Prodan
  • Publishing page based one page layout in SharePoint2010

    This code is very usefull when you need to create publishing page based on page layout.You need to pass the parameters.This is a reusable code you can call whenever you need to create pages.
    Sat, Apr 16 2011 12:40 AM by Ravishankar Singh
  • Merge Xml Files in PDF Document & Reduce Code Duplication

    This technical tip shows how to merge Xml Files in PDF Document. Sometimes different PDF documents share some same content. For example, a number of PDF documents may have the same header or footer. In such cases, a lot of code duplication might be experienced by developers. To reduce this code dup...
    Tue, Mar 15 2011 2:57 AM by Sher Azam
  • Convert Documents to EPUB, Split Large Docs & Read on iPod

    The below technical tip shows how to use Aspose.Words for .NET to easily convert any document to EPUB, Split large documents into small parts and read it on iPod. Splitting Document into Parts Splitting a large document into parts when saving as EPUB, helps to make load and display faster on a...
    Tue, Oct 05 2010 6:42 AM by Sher Azam
  • Allow numeric values only in input field using jQuery

    The following code, can be used for input fields which are for numeric purpose only.
    Thu, Sep 16 2010 3:37 PM by Sonu Kapoor
  • Simple Schema Validator for xml

    With xml schemas it is easier to define allowable content, easier to validate the content It is the way for secure data communication The following c# method depicts the simplest way to validate the given xml file
    Tue, Jun 29 2010 6:18 AM by Jaya Nehru kumar
  • Nice way for strip_tags a like

    I found this code works great as the function strip_tags in php to replace html tags from string and I just want to share it with you. Hope it benefits!
    Mon, May 10 2010 7:46 AM by Ali Alghuter
  • css link on page using asp.net jquery

    In this article showing how to apply css style using jquery on client site.Reference Link:<a href='http://www.aspxtutorial.com/post/2010/03/09/css-link-on-page-using-aspnet-jquery.asp'>css-link-on-page-using-aspnet-jquery</a>
    Thu, Apr 08 2010 3:26 AM by Aamir Hasan
  • A StringBuilder extension method for appending generic multiple values

    This is a StringBuilder extension method that can append a collection of generic values. It is very handy, for example, to formulate a SQL IN statement.
    Tue, Mar 16 2010 11:08 AM by Jing Ding