Showing posts from May, 2015

Load data in the web page after Page load using Timer and Ajax Update panel for fast downloading of page in c#-

In this blog I am going to explain how we could load data asynchronously after Page Load is completed in i.e loading data post the page load so that if you have some page on click of another page your 2nd page could load very fast. We have seen a lot of case where we click on login button but the page loads very slowly even its design and images took a lot of time. Loading and optimizing code for fast retreival of data is different thing and I am not going to touch that thing in this post. This post is just about loading page fast using Timer control and Update Panel So, first of all place a timer and AJAX- update panel before the gridview in your aspx page which needed to load data asynchronously after page load like below :: <html xmlns=""> <head runat="server">     <title></title>     <style type="text/css">          DIV.ProgressBarNew {             width: 150px;          

How to save Image from remote URL, How to save image of Dropbox URL, How to check Image extension is Valid or not, How to check remote URL is valid or not using c#

In this blog I am going to explain how to save Image from remote URL in your Drive, how to save image of Dropbox URL which is little bit different and few small things like how to check Image extension is Valid or not and how we could check whether remote URL is valid or not using c# Apart from these things small things are also there which I have used in this code like how to removes empty elements from an array using LINQ and how to remove special character like semi-colon from elements of array if exists using LINQ. Lot of things are here explained in a very simple and easy to understand way. Paste all code as it is in your new selected project without any changes. Add Drawing referance and few below specified namespaces and don't forget to add Image folder in your base directory and run your code. you will get the result without any error... So, enjoy coding... :) using System.Drawing; using System.Diagnostics; using System.Net; using System.IO; namespace Uplo

Activate/ Deactivate a record using C# in Dynamics CRM 2011/ 2013/ 2015

In this blog I am going to show how we could Activate/ Deactivate a record in Dynamics CRM using c#.  For this we cannot simply activate or deactivate records by simply setting statecode and statuscode in the early bound entity records. To do this, we must use SetStateRequest and SetStateResponse from Microsoft.Crm.Sdk.Proxy assembly. Add all required updated dll referances in your project.                 Below is the methods separately for Activating & Deactivating a record:: public static void DeactivateRecord (Guid recordId, OrganizationServiceProxy organizationService)         {             var EntityName = organizationService.Retrieve("EntityName", recordId, new ColumnSet(new[] { "statecode", "statuscode" }));             try             {                 if (EntityName != null)                 {                     SetStateRequest objSetStateRequest = new SetStateRequest()                     {                         EntityMonik
go to top image