Posts

Showing posts from August, 2016

Generate image ,pdf and Video Thumb using node js

      Using  imagemagick  Generate image thumb                 var im = require( 'imagemagick' );         var image = random() + '.png' ;         var imagepath = 'uploads/images_thumb/' + image;         var pathToFile = path.join(__dirname, req.files[i].path),             pathToSnapshot = path.join(__dirname, '/' + imagepath);         im.resize({             srcPath: pathToFile               , dstPath: pathToSnapshot               , width: 150               , height: 150               , quality: 0               , gravity: "North"         }, function (err, stdout, stderr) {             if (err) {                 console.log(err);             }             console.log( 'resized image ' , pathToSnapshot);             //res.json(pathToSnapshot);         });     Using Gm  Generate Pdf thumb                 var gm = require( 'gm' );       var image = random() + '.p

Insert Update Delete and Sorting In Grid view Control Without Db

< style type ="text/css">         body         {             font-family : Arial ;             font-size : 10pt ;         }         table         {             border : 1px solid #ccc ;         }         table th         {             background-color : #F7F7F7 ;             color : #333 ;             font-weight : bold ;         }         table th , table td         {             padding : 5px ;             border-color : #ccc ;         }     </ style > < asp : GridView ID ="grd" runat ="server" AllowPaging ="true" AllowSorting ="true" PageSize ="10"             AutoGenerateColumns ="false" ShowFooter ="true" DataKeyNames ="id" OnRowCancelingEdit ="grd_RowCancelingEdit"             OnRowDeleting ="grd_RowDeleting" OnRowEditing ="grd_RowEditing" OnRowUpdating ="grd_Row