Monday, 9 May 2016

Top Rich Text Editor or HTML Editor for ASP.Net

Many times we got a requirement to implement a Rich Text Editor to capture HTML enabled rich text.

Here are some most recommended and highly user HTML editor which you can use in your project.


  • Cute Editor

  • Rich Text Editor

Friday, 6 May 2016

Get the registered PlugIn Assembly from CRM

sometimes you had registered a DLL that is working properly but you make some changes in the code and finally you realize that the code doesn't work. It could be great, if you could take the current DLL as backup and registered the new one without concerns.


-----------------------
Here are some solutions

1. If you are running with GAC or Disc deployment then you may find it under assembly area where your CRM is deployed
Sample path:
C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly

2. If you are running with Database deployment then you may get this Dll as part of your entity within your solution. You can export your solution as un-managed and will find your plugin dll inside PlugIn/Assembly directory.

3. You can download an existing plugin through code, not via the browser.

You want to query for the "pluginassembly" entity, that will have all the dlls that are registered. The "name" field is the name of the assembly so you'll check that to make sure you have what you want.

To download the assembly, you'd download it the same way you would an attachment on a note:


  1. // check for null on the content attribute, then....
  2. byte[] theAssemblyData = Convert.FromBase64String(record.Attributes["content"].ToString[]);
  3.  
  4. // Write it to the hard drive if you want
  5. File.WriteAllBytes(thePath, theAssemblyData);

Hope this will help some techies!