Profile cover photo
Profile photo
Hemant Singh Rautela
About
Posts

Post has attachment
Datatable, DataSet, Dataview and SQL query
Task: Datatable, DataSet, Dataview and SQL query Description: Datatable,  DataSet,  Dataview and SQL query. 1) Merge two DataTable into one. var dt1 = new DataTable (); var dt2 = new DataTable (); var result = dt1.AsEnumerable()     .Union(dt2.AsEnumerable(...

Post has attachment

Post has attachment
Image Resize with auto-crop
Task:  Image resize, auto-crop and auto scale. Description: Here is sample code for image resize with auto-crop while maintaining its ratio. below function we need to pass image path, maximum width and height for resizing. And then below code will resized t...

Post has attachment

Post has attachment
WebService with JSON implementation
Task:  WebService with JSON implementation in asp.net Description: Here sample of WebService implementation in asp.net which returns only JSON format, default format of webservice is xml. But we have convert the xml response into JSON format here. As nowday...

Post has attachment

Post has attachment
useful web config code asp.net
Task:   Some useful web.config code. eg. URL Rewriting/ Remove Etag / Remove Server Header/ Enable Gzip and few more. . Description:  Some Useful web-config code which used for URL Rewriting and do many more things. 1) Define database connection in web.conf...

Post has attachment

Post has attachment
Combine ScriptResource ajaxcontroltoolkit script
Task:   Combine the AjaxControlToolkit Script . Description:  Combine the AjaxControlToolkit Script. As we can see when we use AjaxControl on our webpage it load with several javascript resources (ScriptResource.axd). For SEO purpose we need to minimize the...

Post has attachment
Create automated sitemap using asp.net
Task: Create automated sitemap dynamically using asp.net generic web handler. Description: In E-Commerce website or blog we need to update sitemap regularly, instead of generating sitemap using third-party tool, we can generate sitemap dynamically using asp...
Wait while more posts are being loaded