Posts

Showing posts from June, 2017

Display QR Code Generated Name,Link in MVC C#

Image
   I Already mentioned How to Create QR Code Generation in MVC  . Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Gma.QrCodeNet.Encoding; using Gma.QrCodeNet.Encoding.Windows.Render; using System.Data; using System.IO; using System.Drawing; using System.Drawing.Imaging; namespace QRPrint.Controllers {     public class QRControlController : Controller     {         string filepath = HttpRuntime .AppDomainAppPath;         [ HttpGet ]         public ActionResult Display( String txt= "" )         {            // try             //{                 if (txt!= "" )                 {                     QRPrintCodeImage (txt);                     ViewBag.txt = txt + ".png" ;                 }                return View();             //}             //catch (Exception ex)             //{        

A Generic Error Occurred in GDI+ in Dot Net

Image
    This Section I am Getting This Error When Generate Image.  Solution:        Please Check That Destination path is Correct. I am missing Images Folder.       Otherwise, It Will Happen Set Read/Write Permission for that folder.       Check That image format is correct.

QR Code Generator in MVC C#

Image
           Install the following component  for QR Code Generation. C# Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Gma.QrCodeNet.Encoding; using Gma.QrCodeNet.Encoding.Windows.Render; using System.Data; using System.IO; using System.Drawing; using System.Drawing.Imaging; namespace QRPrint.Controllers {     public class QRControlController : Controller     {         string filepath = HttpRuntime .AppDomainAppPath;         [ HttpGet ]         public ActionResult Display( String txt= "" )         {              try             {                 if (txt!= "" )                 {                    QRCodeImage(txt);                     ViewBag.txt = txt + ".png" ;                 }                 return View();             }             catch ( Exception ex)             {                

Clear Buffer and Cache Memory in SQL Server

                      DBCC as Database Console Commands for SQL Server. FREEPROCCACHE   as Clear Cache Without Restarting SQL server or Windows System. DROPCLEANBUFFERS   command to remove all buffers from the buffer pool.      DBCC DROPCLEANBUFFERS      DBCC FREEPROCCACHE Run that Mentioned Query in Selected Database Query. Remove All Buffer and Cache Memory.