.Net , C#, ASP MVC , Telerik , Xamarin


Xamarin Code

Learn more


.Net App with ASP MVC 5 and EF 5

Learn more

IOS Swift

IOS app with native language

Learn more


Some other thing that i may lookback

Learn more

How to delete duplicate rows in sql server?



This is the flash game site from my friend : http://gamesicons.com


Get Active directory users info using UserPrincipal

//Config ADFS as tutorial in the link below :





Please note : we pass Sam-Account Name as Name in Claim Rule setting

//Get Property of user in AD for .Net 4.0 -4.5

// Get groups

Query and update an Excel 2010 spreadsheet via a linked server

First  I downloaded and installed the ‘AccessDatabaseEngine_x64.exe’ file on the SQL Server from http://www.microsoft.com/download/en/details.aspx?id=13255. No restart was required.

Next I started SQL Server Management Studio as ‘Administrator’.



Next I enabled the ‘Allow inprocess’ option for the Microsoft.ACE.OLEDB.12.0 provider.



The linked server was created with this script:

IOS design layout , icon , size ….

Resolutions and Display Specifications

Device Retina Portrait (px) Landscape (px)
iPhone 6+ Retina HD 1080 x 1920 1920 x1080
iPhone 6 Retina 750 x 1334 1334 x 750
iPhone 55, 5S, 5C Retina 640 x 1136 1136 x 640
iPhone 44, 4S Retina 640 x 960 960 x 640
iPhone1st, 2nd & 3rd Generation No 320 x 480 480 x 320
iPad Air / Retina iPad1st & 2nd Generation / 3rd & 4th No 1536 x 2048 2048 x 1536
iPad Mini2nd & 3rd Generation Retina 1536 x 2048 2048 x 1536
iPadMini, 1st & 2nd Generation No 768 x 1024 1024 x 768


Device Asset Resolution PPI Display Size
iPhone 6+ @3x 401 5.5″
iPhone 6 @2x 326 4.7″
iPhone 55, 5S, 5C @2x 326 4.0″
iPhone 44, 4S @2x 326 3.5″
iPhone1st, 2nd & 3rd Generation @1x 163 3.5″
iPad Air / Retina iPad1st & 2nd Generation/ 3rd & 4th @2x 264 9.7″
iPad Mini2nd & 3rd Generation @2x 326 7.9″
iPad Mini1st Generation @1x 163 7.9″
iPad1st & 2nd Generation @1x 132 9.7″

App Icons

Device App Icon AppStore Icon Spotlight Settings
iPhone 6+ 180×180 px 1024×1024 px 120×120 px 87×87 px
iPhone6, 5S, 5, 5C, 4S, 4 120×120 px 1024×1024 px 80×80 px 58×58 px
Old iPhones1st, 2nd, 3rd Generation 57×57 px 1024×1024 px 29×29 px 29×29 px
Retina iPadsMini 2 & 3, Air, 3 & 4 152×152 px 1024×1024 px 80×80 px 58×58 px
Old iPads1, 2, Mini 1 76×76 px 1024×1024 px 40×40 px 29×29 px

Icon dimensions for iOS 8 apps:

Name Size (px) Usage
Icon-Small.png 29×29 iPad Settings
Icon-Small@2x.png 58×58 iPhone Settings, iPad Settings for Retina display
Icon-Small@3x.png 87×87 iPhone Settings for Retina display
Icon-40.png 40×40 iPad Spotlight results
Icon-40@2x.png 80×80 iPhone Spotlight results, iPad Spotlight results for retina display
Icon-40@3x.png 120×120 iPhone Spotlight results for retina display
Icon-60@2x.png 120×120 iPhone App Icon
Icon-60@3x.png 180×180 iPhone App Icon for Retina display
Icon-76.png 76×76 iPad App Icon
Icon-76@2x.png 152×152 iPad App Icon for Retina display
Icon-120.png 120×120 CarPlay App Icon
iTunesArtwork.png 512×512 App Submission
iTunesArtwork@2x.png 1024×1024 App Submission

FTPS with C#

This post will show how to upload , download a file via FTPS protocol with C#

Open Nuget manager , search for AlexFTPS package, then add it into your project .

This function below demo how to use it :

Payment online with Payway Api (Westpac)

Hi , i wrote this tutorial in order to help you when you want to develop an app which is support payment with credit card online by using Payway Api (Westpac Bank). If you want to have more information about this , please visit its website Payway

First we need this function to initialize the API .

The second function will be used to capture the payment from customer .

Next , if we want to register the customer with Payway , we can use this function below .

Finally , If we want to do the recurring payment with registered customer without credit card detail, we can use this function :

Sending Email in ASP MVC with Mvc Mailer

This is a very simple and good email API that we can use in asp mvc app. It allow us to have something below ( i got it from MVC Mailer site )

  • Write clean code to send emails instead of spaghetti code
  • Reuse the power of master pages, views and data
  • Easily write unit test for email sending code
  • Send multi-part emails
  • Do some or all the above painlessly.

Now shall we start to implement it?

  • Create a new ASP  app with VS 2013.
  • Search and Add MvcMailer nuget from Nuget Manager or command :

  • Create a new folder which called “Mailer” which contains 3 files :
  • ExampleEmailModel.cs

  • IExampleMailer.cs

  •  ExampleMailer.cs

  •  Create a sub-folder in View folder which called “ExampleMailer”. It will contain 3 files:
  • _Layout.cshtml

  •  Template1.cshtml

  •  Template2.cshtml

  •  After that , we open the HomeController and add these line of codes into Index action

  •  Please remember to declare the ExampleMailer class first , in the HomeController

  •  Final thing need to be take care of is the email setting in web.config . Please take a look at <system.net> <mailSetting> . We need to put in our email address , server name , username and password.  For example :

That’s all .

Code Sample Download

Post of the day

April 2016
« Dec