add

Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Tuesday, 19 June 2018

How to Make Your Website Respond to Different Mobile Devices

How to Make Your Website Respond to Different Mobile Devices



In the television show The Wire, one of the major problems the Barksdale organization faced was identifying and punishing thieves.
Early in season one, the character Stringer Bell approached one of his lieutenants (D’Angelo Barksdale), telling him that they had a snitch tipping off their stick-up crew.
Bell’s solution for identifying the thief was to withhold payment to the crew. The crew member that didn’t come asking for his money would be identified as the thief.
In trying to determine the unknown identity of their thief, Stringer and D’Angelo applied two elements:
  • A test
  • A set of conditions
Once those conditions were met — and the identity of the thief known — the punishment could be delivered.
When designing responsively our first goal is to identify the device our page is loading into. When we know the device, we can then impose our will onto the page and tell it what to do.
To achieve this, we apply tests and conditions which are called media queries.
WHAT IS A MEDIA QUERY?
A media query consists — essentially — of a media type and an expression to check for certain conditions of a particular media feature.
The most commonly used media feature is width.
By restricting CSS rules to the particular width of the device displaying a web page, we can tailor the page’s representation to devices (i.e. smartphones, tablets, netbooks, and desktops) with varying screen resolution.
In the example below, in order for the rule to be applied, the browser must meet two conditions:
  • The media type must be “screen”
  • The minimum width of that screen has to be at least 1024px
Any browser that meets both of the conditions will have the css style font-size: 100% applied to the body class, like so:
@media screen and (min-width: 1024px) {
  body {
    font-size: 100%;
  }
}
APPLYING MORE SPECIFIC CONDITIONS TO THE TARGET DEVICE
Depending on the identity of your target device, you can vary the conditions and results.
Sometimes — like in the example above — you’re dealing with a large number of possible identities, and your conditions can hit them all.
Or, you can get a little more selective in your tests.
In season three of the Wire a soldier named Cutty had a pretty good idea of who’d been stealing from him, but needs to perform a couple tests to make sure.
In his case, the conditions were more selective: he watched the dealer and his girlfriend as they continually appeared in public sporting new clothes and new jewelry.
In this case, Cutty was chaining together the conditions that needed to be met.
We can do the same with media queries.
For example, you can target a particular mobile device and set different styles to render within in it depending on whether the device is being held in landscape or portrait mode.
You can chain those different conditions together like so:
@media screen and (min-device-width: 480px) and (orientation: landscape) {
  body {
    font-size: 100%;
  }
}
TARGETING SPECIFIC DEVICES
Sometimes you know the exact identity of your target device and you want certain things to happen when your website loads within it.
Which brings us back to The Wire: Omar Little was a legendary stick-up man who robbed local drug dealers. Whenever he popped onto the radar, the scene usually ended up in a hail of gunfire.
Omar is very well known target.
Using a media query, we can target a specific mobile device, like an iPhone 4.
We know that it has a specific pixel ratio and uses a specific browser. With those specs in mind, we can set specific conditions to match that particular phone like so:
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
  body {
    font-size: 90%;
  }
}
Here are sample snippets of CSS that you can use to target specific mobile devices:
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}

Thursday, 7 June 2018

Bootstrap Classes Array of Icons Of Fa


Bootstrap Classes Array Of Icon

Fa



namespace myProject
{
public class mybootstrapIcon
{
public string[] GetbootstrapIconArray()

return new string[]{"fa-500px", "fa-address-book", "fa-address-book-o", "fa-address-card", "fa-address-card-o", "fa-adjust", "fa-adn", "fa-align-center", "fa-align-justify", "fa-align-left", "fa-align-right", "fa-amazon", "fa-ambulance", "fa-american-sign-language-interpreting", "fa-anchor", "fa-android", "fa-angellist", "fa-angle-double-down", "fa-angle-double-left", "fa-angle-double-right", "fa-angle-double-up", "fa-angle-down", "fa-angle-left", "fa-angle-right", "fa-angle-up", "fa-apple", "fa-archive", "fa-area-chart", "fa-arrow-circle-down", "fa-arrow-circle-left", "fa-arrow-circle-o-down", "fa-arrow-circle-o-left", "fa-arrow-circle-o-right", "fa-arrow-circle-o-up", "fa-arrow-circle-right", "fa-arrow-circle-up", "fa-arrow-down", "fa-arrow-left", "fa-arrow-right", "fa-arrow-up", "fa-arrows", "fa-arrows-alt", "fa-arrows-h", "fa-arrows-v", "fa-asl-interpreting", "fa-assistive-listening-systems", "fa-asterisk", "fa-at", "fa-audio-description", "fa-automobile", "fa-backward", "fa-balance-scale", "fa-ban", "fa-bandcamp", "fa-bank", "fa-bar-chart", "fa-bar-chart-o", "fa-barcode", "fa-bars", "fa-bath", "fa-bathtub", "fa-battery", "fa-battery-0", "fa-battery-1", "fa-battery-2", "fa-battery-3", "fa-battery-4", "fa-battery-empty", "fa-battery-full", "fa-battery-half", "fa-battery-quarter", "fa-battery-three-quarters", "fa-bed", "fa-beer", "fa-behance", "fa-behance-square", "fa-bell", "fa-bell-o", "fa-bell-slash", "fa-bell-slash-o", "fa-bicycle", "fa-binoculars", "fa-birthday-cake", "fa-bitbucket", "fa-bitbucket-square", "fa-bitcoin", "fa-black-tie", "fa-blind", "fa-bluetooth", "fa-bluetooth-b", "fa-bold", "fa-bolt", "fa-bomb", "fa-book", "fa-bookmark", "fa-bookmark-o", "fa-braille", "fa-briefcase", "fa-btc", "fa-bug", "fa-building", "fa-building-o", "fa-bullhorn", "fa-bullseye", "fa-bus", "fa-buysellads", "fa-cab", "fa-calculator", "fa-calendar", "fa-calendar-check-o", "fa-calendar-minus-o", "fa-calendar-o", "fa-calendar-plus-o", "fa-calendar-times-o", "fa-camera", "fa-camera-retro", "fa-car", "fa-caret-down", "fa-caret-left", "fa-caret-right", "fa-caret-square-o-down", "fa-caret-square-o-left", "fa-caret-square-o-right", "fa-caret-square-o-up", "fa-caret-up", "fa-cart-arrow-down", "fa-cart-plus", "fa-cc", "fa-cc-amex", "fa-cc-diners-club", "fa-cc-discover", "fa-cc-jcb", "fa-cc-mastercard", "fa-cc-paypal", "fa-cc-stripe", "fa-cc-visa", "fa-certificate", "fa-chain", "fa-chain-broken", "fa-check", "fa-check-circle", "fa-check-circle-o", "fa-check-square", "fa-check-square-o", "fa-chevron-circle-down", "fa-chevron-circle-left", "fa-chevron-circle-right", "fa-chevron-circle-up", "fa-chevron-down", "fa-chevron-left", "fa-chevron-right", "fa-chevron-up", "fa-child", "fa-chrome", "fa-circle", "fa-circle-o", "fa-circle-o-notch", "fa-circle-thin", "fa-clipboard", "fa-clock-o", "fa-clone", "fa-close", "fa-cloud", "fa-cloud-download", "fa-cloud-upload", "fa-cny", "fa-code", "fa-code-fork", "fa-codepen", "fa-codiepie", "fa-coffee", "fa-cog", "fa-cogs", "fa-columns", "fa-comment", "fa-comment-o", "fa-commenting", "fa-commenting-o", "fa-comments", "fa-comments-o", "fa-compass", "fa-compress", "fa-connectdevelop", "fa-contao", "fa-copy", "fa-copyright", "fa-creative-commons", "fa-credit-card", "fa-credit-card-alt", "fa-crop", "fa-crosshairs", "fa-css3", "fa-cube", "fa-cubes", "fa-cut", "fa-cutlery", "fa-dashboard", "fa-dashcube", "fa-database", "fa-deaf", "fa-deafness", "fa-dedent", "fa-delicious", "fa-desktop", "fa-deviantart", "fa-diamond", "fa-digg", "fa-dollar", "fa-dot-circle-o", "fa-download", "fa-dribbble", "fa-drivers-license", "fa-drivers-license-o", "fa-dropbox", "fa-drupal", "fa-edge", "fa-edit", "fa-eercast", "fa-eject", "fa-ellipsis-h", "fa-ellipsis-v", "fa-empire", "fa-envelope", "fa-envelope-o", "fa-envelope-open", "fa-envelope-open-o", "fa-envelope-square", "fa-envira", "fa-eraser", "fa-etsy", "fa-eur", "fa-euro", "fa-exchange", "fa-exclamation", "fa-exclamation-circle", "fa-exclamation-triangle", "fa-expand", "fa-expeditedssl", "fa-external-link", "fa-external-link-square", "fa-eye", "fa-eye-slash", "fa-eyedropper", "fa-fa", "fa-facebook", "fa-facebook-f", "fa-facebook-official", "fa-facebook-square", "fa-fast-backward", "fa-fast-forward", "fa-fax", "fa-feed", "fa-female", "fa-fighter-jet", "fa-file", "fa-file-archive-o", "fa-file-audio-o", "fa-file-code-o", "fa-file-excel-o", "fa-file-image-o", "fa-file-movie-o", "fa-file-o", "fa-file-pdf-o", "fa-file-photo-o", "fa-file-picture-o", "fa-file-powerpoint-o", "fa-file-sound-o", "fa-file-text", "fa-file-text-o", "fa-file-video-o", "fa-file-word-o", "fa-file-zip-o", "fa-files-o", "fa-film", "fa-filter", "fa-fire", "fa-fire-extinguisher", "fa-firefox", "fa-first-order", "fa-flag", "fa-flag-checkered", "fa-flag-o", "fa-flash", "fa-flask", "fa-flickr", "fa-floppy-o", "fa-folder", "fa-folder-o", "fa-folder-open", "fa-folder-open-o", "fa-font", "fa-font-awesome", "fa-fonticons", "fa-fort-awesome", "fa-forumbee", "fa-forward", "fa-foursquare", "fa-free-code-camp", "fa-frown-o", "fa-futbol-o", "fa-gamepad", "fa-gavel", "fa-gbp", "fa-ge", "fa-gear", "fa-gears", "fa-genderless", "fa-get-pocket", "fa-gg", "fa-gg-circle", "fa-gift", "fa-git", "fa-git-square", "fa-github", "fa-github-alt", "fa-github-square", "fa-gitlab", "fa-gittip", "fa-glass", "fa-glide", "fa-glide-g", "fa-globe", "fa-google", "fa-google-plus", "fa-google-plus-circle", "fa-google-plus-official", "fa-google-plus-square", "fa-google-wallet", "fa-graduation-cap", "fa-gratipay", "fa-grav", "fa-group", "fa-h-square", "fa-hacker-news", "fa-hand-grab-o", "fa-hand-lizard-o", "fa-hand-o-down", "fa-hand-o-left", "fa-hand-o-right", "fa-hand-o-up", "fa-hand-paper-o", "fa-hand-peace-o", "fa-hand-pointer-o", "fa-hand-rock-o", "fa-hand-scissors-o", "fa-hand-spock-o", "fa-hand-stop-o", "fa-handshake-o", "fa-hard-of-hearing", "fa-hashtag", "fa-hdd-o", "fa-header", "fa-headphones", "fa-heart", "fa-heart-o", "fa-heartbeat", "fa-history", "fa-home", "fa-hospital-o", "fa-hotel", "fa-hourglass", "fa-hourglass-1", "fa-hourglass-2", "fa-hourglass-3", "fa-hourglass-end", "fa-hourglass-half", "fa-hourglass-o", "fa-hourglass-start", "fa-houzz", "fa-html5", "fa-i-cursor", "fa-id-badge", "fa-id-card", "fa-id-card-o", "fa-ils", "fa-image", "fa-imdb", "fa-inbox", "fa-indent", "fa-industry", "fa-info", "fa-info-circle", "fa-inr", "fa-instagram", "fa-institution", "fa-internet-explorer", "fa-intersex", "fa-ioxhost", "fa-italic", "fa-joomla", "fa-jpy", "fa-jsfiddle", "fa-key", "fa-keyboard-o", "fa-krw", "fa-language", "fa-laptop", "fa-lastfm", "fa-lastfm-square", "fa-leaf", "fa-leanpub", "fa-legal", "fa-lemon-o", "fa-level-down", "fa-level-up", "fa-life-bouy", "fa-life-buoy", "fa-life-ring", "fa-life-saver", "fa-lightbulb-o", "fa-line-chart", "fa-link", "fa-linkedin", "fa-linkedin-square", "fa-linode", "fa-linux", "fa-list", "fa-list-alt", "fa-list-ol", "fa-list-ul", "fa-location-arrow", "fa-lock", "fa-long-arrow-down", "fa-long-arrow-left", "fa-long-arrow-right", "fa-long-arrow-up", "fa-low-vision", "fa-magic", "fa-magnet", "fa-mail-forward", "fa-mail-reply", "fa-mail-reply-all", "fa-male", "fa-map", "fa-map-marker", "fa-map-o", "fa-map-pin", "fa-map-signs", "fa-mars", "fa-mars-double", "fa-mars-stroke", "fa-mars-stroke-h", "fa-mars-stroke-v", "fa-maxcdn", "fa-meanpath", "fa-medium", "fa-medkit", "fa-meetup", "fa-meh-o", "fa-mercury", "fa-microchip", "fa-microphone", "fa-microphone-slash", "fa-minus", "fa-minus-circle", "fa-minus-square", "fa-minus-square-o", "fa-mixcloud", "fa-mobile", "fa-mobile-phone", "fa-modx", "fa-money", "fa-moon-o", "fa-mortar-board", "fa-motorcycle", "fa-mouse-pointer", "fa-music", "fa-navicon", "fa-neuter", "fa-newspaper-o", "fa-object-group", "fa-object-ungroup", "fa-odnoklassniki", "fa-odnoklassniki-square", "fa-opencart", "fa-openid", "fa-opera", "fa-optin-monster", "fa-outdent", "fa-pagelines", "fa-paint-brush", "fa-paper-plane", "fa-paper-plane-o", "fa-paperclip", "fa-paragraph", "fa-paste", "fa-pause", "fa-pause-circle", "fa-pause-circle-o", "fa-paw", "fa-paypal", "fa-pencil", "fa-pencil-square", "fa-pencil-square-o", "fa-percent", "fa-phone", "fa-phone-square", "fa-photo", "fa-picture-o", "fa-pie-chart", "fa-pied-piper", "fa-pied-piper-alt", "fa-pied-piper-pp", "fa-pinterest", "fa-pinterest-p", "fa-pinterest-square", "fa-plane", "fa-play", "fa-play-circle", "fa-play-circle-o", "fa-plug", "fa-plus", "fa-plus-circle", "fa-plus-square", "fa-plus-square-o", "fa-podcast", "fa-power-off", "fa-print", "fa-product-hunt", "fa-puzzle-piece", "fa-qq", "fa-qrcode", "fa-question", "fa-question-circle", "fa-question-circle-o", "fa-quora", "fa-quote-left", "fa-quote-right", "fa-ra", "fa-random", "fa-ravelry", "fa-rebel", "fa-recycle", "fa-reddit", "fa-reddit-alien", "fa-reddit-square", "fa-refresh", "fa-registered", "fa-remove", "fa-renren", "fa-reorder", "fa-repeat", "fa-reply", "fa-reply-all", "fa-resistance", "fa-retweet", "fa-rmb", "fa-road", "fa-rocket", "fa-rotate-left", "fa-rotate-right", "fa-rouble", "fa-rss", "fa-rss-square", "fa-rub", "fa-ruble", "fa-rupee", "fa-s15", "fa-safari", "fa-save", "fa-scissors", "fa-scribd", "fa-search", "fa-search-minus", "fa-search-plus", "fa-sellsy", "fa-send", "fa-send-o", "fa-server", "fa-share", "fa-share-alt", "fa-share-alt-square", "fa-share-square", "fa-share-square-o", "fa-shekel", "fa-sheqel", "fa-shield", "fa-ship", "fa-shirtsinbulk", "fa-shopping-bag", "fa-shopping-basket", "fa-shopping-cart", "fa-shower", "fa-sign-in", "fa-sign-language", "fa-sign-out", "fa-signal", "fa-signing", "fa-simplybuilt", "fa-sitemap", "fa-skyatlas", "fa-skype", "fa-slack", "fa-sliders", "fa-slideshare", "fa-smile-o", "fa-snapchat", "fa-snapchat-ghost", "fa-snapchat-square", "fa-snowflake-o", "fa-soccer-ball-o", "fa-sort", "fa-sort-alpha-asc", "fa-sort-alpha-desc", "fa-sort-amount-asc", "fa-sort-amount-desc", "fa-sort-asc", "fa-sort-desc", "fa-sort-down", "fa-sort-numeric-asc", "fa-sort-numeric-desc", "fa-sort-up", "fa-soundcloud", "fa-space-shuttle", "fa-spinner", "fa-spoon", "fa-spotify", "fa-square", "fa-square-o", "fa-stack-exchange", "fa-stack-overflow", "fa-star", "fa-star-half", "fa-star-half-empty", "fa-star-half-full", "fa-star-half-o", "fa-star-o", "fa-steam", "fa-steam-square", "fa-step-backward", "fa-step-forward", "fa-stethoscope", "fa-sticky-note", "fa-sticky-note-o", "fa-stop", "fa-stop-circle", "fa-stop-circle-o", "fa-street-view", "fa-strikethrough", "fa-stumbleupon", "fa-stumbleupon-circle", "fa-subscript", "fa-subway", "fa-suitcase", "fa-sun-o", "fa-superpowers", "fa-superscript", "fa-support", "fa-table", "fa-tablet", "fa-tachometer", "fa-tag", "fa-tags", "fa-tasks", "fa-taxi", "fa-telegram", "fa-television", "fa-tencent-weibo", "fa-terminal", "fa-text-height", "fa-text-width", "fa-th", "fa-th-large", "fa-th-list", "fa-themeisle", "fa-thermometer", "fa-thermometer-0", "fa-thermometer-1", "fa-thermometer-2", "fa-thermometer-3", "fa-thermometer-4", "fa-thermometer-empty", "fa-thermometer-full", "fa-thermometer-half", "fa-thermometer-quarter", "fa-thermometer-three-quarters", "fa-thumb-tack", "fa-thumbs-down", "fa-thumbs-o-down", "fa-thumbs-o-up", "fa-thumbs-up", "fa-ticket", "fa-times", "fa-times-circle", "fa-times-circle-o", "fa-times-rectangle", "fa-times-rectangle-o", "fa-tint", "fa-toggle-down", "fa-toggle-left", "fa-toggle-off", "fa-toggle-on", "fa-toggle-right", "fa-toggle-up", "fa-trademark", "fa-train", "fa-transgender", "fa-transgender-alt", "fa-trash", "fa-trash-o", "fa-tree", "fa-trello", "fa-tripadvisor", "fa-trophy", "fa-truck", "fa-try", "fa-tty", "fa-tumblr", "fa-tumblr-square", "fa-turkish-lira", "fa-tv", "fa-twitch", "fa-twitter", "fa-twitter-square", "fa-umbrella", "fa-underline", "fa-undo", "fa-universal-access", "fa-university", "fa-unlink", "fa-unlock", "fa-unlock-alt", "fa-unsorted", "fa-upload", "fa-usb", "fa-usd", "fa-user", "fa-user-circle", "fa-user-circle-o", "fa-user-md", "fa-user-o", "fa-user-plus", "fa-user-secret", "fa-user-times", "fa-users", "fa-vcard", "fa-vcard-o", "fa-venus", "fa-venus-double", "fa-venus-mars", "fa-viacoin", "fa-viadeo", "fa-viadeo-square", "fa-video-camera", "fa-vimeo", "fa-vimeo-square", "fa-vine", "fa-vk", "fa-volume-control-phone", "fa-volume-down", "fa-volume-off", "fa-volume-up", "fa-warning", "fa-wechat", "fa-weibo", "fa-weixin", "fa-whatsapp", "fa-wheelchair", "fa-wheelchair-alt", "fa-wifi", "fa-wikipedia-w", "fa-window-close", "fa-window-close-o", "fa-window-maximize", "fa-window-minimize", "fa-window-restore", "fa-windows", "fa-won", "fa-wordpress", "fa-wpbeginner", "fa-wpexplorer", "fa-wpforms", "fa-wrench", "fa-xing", "fa-xing-square", "fa-y-combinator", "fa-y-combinator-square", "fa-yahoo", "fa-yc", "fa-yc-square", "fa-yelp", "fa-yen", "fa-yoast", "fa-youtube", "fa-youtube-play", "fa-youtube-square"};

}

}
}

how to create image simple image slider using javascript


How to create image simple image slider using javascript

<html>
<head>
<script language="JavaScript">

var i = 0;
var path = new Array();

// LIST OF IMAGES
path[0] = "image_1.gif";
path[1] = "image_2.gif";
path[2] = "image_3.gif";

function swapImage()
{
document.slide.src = path[i];
if(i < path.length - 1) i++; else i = 0;
setTimeout("swapImage()",3000);
}
window.onload=swapImage;

</script>
</head>
<body>
<img height="200" name="slide" src="image_1.gif" width="400" />
<body>
</html>

Wednesday, 6 June 2018

Bootstrap Classes Array of String

Bootstrap Classes Array of String

 of fas ,far,fab

using System;
using System.io;
namespace yourProject.BAL.Utility
{
public static class Utils
{
public static string[] GetBootstrapfasClass()
        {
            return new string[] { "fas fa-address-book", "fas fa-address-card", "fas fa-adjust", "fas fa-align-center", "fas fa-align-justify", "fas fa-align-left", "fas fa-align-right", "fas fa-allergies", "fas fa-ambulance", "fas fa-american-sign-language-interpreting", "fas fa-anchor", "fas fa-angle-double-down", "fas fa-angle-double-left", "fas fa-angle-double-right", "fas fa-angle-double-up", "fas fa-angle-down", "fas fa-angle-left", "fas fa-angle-right", "fas fa-angle-up", "fas fa-archive", "fas fa-arrow-alt-circle-down", "fas fa-arrow-alt-circle-left", "fas fa-arrow-alt-circle-right", "fas fa-arrow-alt-circle-up", "fas fa-arrow-circle-down", "fas fa-arrow-circle-left", "fas fa-arrow-circle-right", "fas fa-arrow-circle-up", "fas fa-arrow-down", "fas fa-arrow-left", "fas fa-arrow-right", "fas fa-arrow-up", "fas fa-arrows-alt", "fas fa-arrows-alt-h", "fas fa-arrows-alt-v", "fas fa-assistive-listening-systems", "fas fa-asterisk", "fas fa-at", "fas fa-audio-description", "fas fa-backward", "fas fa-balance-scale", "fas fa-ban", "fas fa-band-aid", "fas fa-barcode", "fas fa-bars", "fas fa-baseball-ball", "fas fa-basketball-ball", "fas fa-bath", "fas fa-battery-empty", "fas fa-battery-full", "fas fa-battery-half", "fas fa-battery-quarter", "fas fa-battery-three-quarters", "fas fa-bed", "fas fa-beer", "fas fa-bell", "fas fa-bell-slash", "fas fa-bicycle", "fas fa-binoculars", "fas fa-birthday-cake", "fas fa-blind", "fas fa-bold", "fas fa-bolt", "fas fa-bomb", "fas fa-book", "fas fa-bookmark", "fas fa-bowling-ball", "fas fa-box", "fas fa-box-open", "fas fa-boxes", "fas fa-braille", "fas fa-briefcase", "fas fa-briefcase-medical", "fas fa-bug", "fas fa-building", "fas fa-bullhorn", "fas fa-bullseye", "fas fa-burn", "fas fa-bus", "fas fa-calculator", "fas fa-calendar", "fas fa-calendar-alt", "fas fa-calendar-check", "fas fa-calendar-minus", "fas fa-calendar-plus", "fas fa-calendar-times", "fas fa-camera", "fas fa-camera-retro", "fas fa-capsules", "fas fa-car", "fas fa-caret-down", "fas fa-caret-left", "fas fa-caret-right", "fas fa-caret-square-down", "fas fa-caret-square-left", "fas fa-caret-square-right", "fas fa-caret-square-up", "fas fa-caret-up", "fas fa-cart-arrow-down", "fas fa-cart-plus", "fas fa-certificate", "fas fa-chart-area", "fas fa-chart-bar", "fas fa-chart-line", "fas fa-chart-pie", "fas fa-check", "fas fa-check-circle", "fas fa-check-square", "fas fa-chess", "fas fa-chess-bishop", "fas fa-chess-board", "fas fa-chess-king", "fas fa-chess-knight", "fas fa-chess-pawn", "fas fa-chess-queen", "fas fa-chess-rook", "fas fa-chevron-circle-down", "fas fa-chevron-circle-left", "fas fa-chevron-circle-right", "fas fa-chevron-circle-up", "fas fa-chevron-down", "fas fa-chevron-left", "fas fa-chevron-right", "fas fa-chevron-up", "fas fa-child", "fas fa-circle", "fas fa-circle-notch", "fas fa-clipboard", "fas fa-clipboard-check", "fas fa-clipboard-list", "fas fa-clock", "fas fa-clone", "fas fa-closed-captioning", "fas fa-cloud", "fas fa-cloud-download-alt", "fas fa-cloud-upload-alt", "fas fa-code", "fas fa-code-branch", "fas fa-coffee", "fas fa-cog", "fas fa-cogs", "fas fa-columns", "fas fa-comment", "fas fa-comment-alt", "fas fa-comment-dots", "fas fa-comment-slash", "fas fa-comments", "fas fa-compass", "fas fa-compress", "fas fa-copy", "fas fa-copyright", "fas fa-couch", "fas fa-credit-card", "fas fa-crop", "fas fa-crosshairs", "fas fa-cube", "fas fa-cubes", "fas fa-cut", "fas fa-database", "fas fa-deaf", "fas fa-desktop", "fas fa-diagnoses", "fas fa-dna", "fas fa-dollar-sign", "fas fa-dolly", "fas fa-dolly-flatbed", "fas fa-donate", "fas fa-dot-circle", "fas fa-dove", "fas fa-download", "fas fa-edit", "fas fa-eject", "fas fa-ellipsis-h", "fas fa-ellipsis-v", "fas fa-envelope", "fas fa-envelope-open", "fas fa-envelope-square", "fas fa-eraser", "fas fa-euro-sign", "fas fa-exchange-alt", "fas fa-exclamation", "fas fa-exclamation-circle", "fas fa-exclamation-triangle", "fas fa-expand", "fas fa-expand-arrows-alt", "fas fa-external-link-alt", "fas fa-external-link-square-alt", "fas fa-eye", "fas fa-eye-dropper", "fas fa-eye-slash", "fas fa-fast-backward", "fas fa-fast-forward", "fas fa-fax", "fas fa-female", "fas fa-fighter-jet", "fas fa-file", "fas fa-file-alt", "fas fa-file-archive", "fas fa-file-audio", "fas fa-file-code", "fas fa-file-excel", "fas fa-file-image", "fas fa-file-medical", "fas fa-file-medical-alt", "fas fa-file-pdf", "fas fa-file-powerpoint", "fas fa-file-video", "fas fa-file-word", "fas fa-film", "fas fa-filter", "fas fa-fire", "fas fa-fire-extinguisher", "fas fa-first-aid", "fas fa-flag", "fas fa-flag-checkered", "fas fa-flask", "fas fa-folder", "fas fa-folder-open", "fas fa-font", "fas fa-football-ball", "fas fa-forward", "fas fa-frown", "fas fa-futbol", "fas fa-gamepad", "fas fa-gavel", "fas fa-gem", "fas fa-genderless", "fas fa-gift", "fas fa-glass-martini", "fas fa-globe", "fas fa-golf-ball", "fas fa-graduation-cap", "fas fa-h-square", "fas fa-hand-holding", "fas fa-hand-holding-heart", "fas fa-hand-holding-usd", "fas fa-hand-lizard", "fas fa-hand-paper", "fas fa-hand-peace", "fas fa-hand-point-down", "fas fa-hand-point-left", "fas fa-hand-point-right", "fas fa-hand-point-up", "fas fa-hand-pointer", "fas fa-hand-rock", "fas fa-hand-scissors", "fas fa-hand-spock", "fas fa-hands", "fas fa-hands-helping", "fas fa-handshake", "fas fa-hashtag", "fas fa-hdd", "fas fa-heading", "fas fa-headphones", "fas fa-heart", "fas fa-heartbeat", "fas fa-history", "fas fa-hockey-puck", "fas fa-home", "fas fa-hospital", "fas fa-hospital-alt", "fas fa-hospital-symbol", "fas fa-hourglass", "fas fa-hourglass-end", "fas fa-hourglass-half", "fas fa-hourglass-start", "fas fa-i-cursor", "fas fa-id-badge", "fas fa-id-card", "fas fa-id-card-alt", "fas fa-image", "fas fa-images", "fas fa-inbox", "fas fa-indent", "fas fa-industry", "fas fa-info", "fas fa-info-circle", "fas fa-italic", "fas fa-key", "fas fa-keyboard", "fas fa-language", "fas fa-laptop", "fas fa-leaf", "fas fa-lemon", "fas fa-level-down-alt", "fas fa-level-up-alt", "fas fa-life-ring", "fas fa-lightbulb", "fas fa-link", "fas fa-lira-sign", "fas fa-list", "fas fa-list-alt", "fas fa-list-ol", "fas fa-list-ul", "fas fa-location-arrow", "fas fa-lock", "fas fa-lock-open", "fas fa-long-arrow-alt-down", "fas fa-long-arrow-alt-left", "fas fa-long-arrow-alt-right", "fas fa-long-arrow-alt-up", "fas fa-low-vision", "fas fa-magic", "fas fa-magnet", "fas fa-male", "fas fa-map", "fas fa-map-marker", "fas fa-map-marker-alt", "fas fa-map-pin", "fas fa-map-signs", "fas fa-mars", "fas fa-mars-double", "fas fa-mars-stroke", "fas fa-mars-stroke-h", "fas fa-mars-stroke-v", "fas fa-medkit", "fas fa-meh", "fas fa-mercury", "fas fa-microchip", "fas fa-microphone", "fas fa-microphone-slash", "fas fa-minus", "fas fa-minus-circle", "fas fa-minus-square", "fas fa-mobile", "fas fa-mobile-alt", "fas fa-money-bill-alt", "fas fa-moon", "fas fa-motorcycle", "fas fa-mouse-pointer", "fas fa-music", "fas fa-neuter", "fas fa-newspaper", "fas fa-notes-medical", "fas fa-object-group", "fas fa-object-ungroup", "fas fa-outdent", "fas fa-paint-brush", "fas fa-pallet", "fas fa-paper-plane", "fas fa-paperclip", "fas fa-parachute-box", "fas fa-paragraph", "fas fa-paste", "fas fa-pause", "fas fa-pause-circle", "fas fa-paw", "fas fa-pen-square", "fas fa-pencil-alt", "fas fa-people-carry", "fas fa-percent", "fas fa-phone", "fas fa-phone-slash", "fas fa-phone-square", "fas fa-phone-volume", "fas fa-piggy-bank", "fas fa-pills", "fas fa-plane", "fas fa-play", "fas fa-play-circle", "fas fa-plug", "fas fa-plus", "fas fa-plus-circle", "fas fa-plus-square", "fas fa-podcast", "fas fa-poo", "fas fa-pound-sign", "fas fa-power-off", "fas fa-prescription-bottle", "fas fa-prescription-bottle-alt", "fas fa-print", "fas fa-procedures", "fas fa-puzzle-piece", "fas fa-qrcode", "fas fa-question", "fas fa-question-circle", "fas fa-quidditch", "fas fa-quote-left", "fas fa-quote-right", "fas fa-random", "fas fa-recycle", "fas fa-redo", "fas fa-redo-alt", "fas fa-registered", "fas fa-reply", "fas fa-reply-all", "fas fa-retweet", "fas fa-ribbon", "fas fa-road", "fas fa-rocket", "fas fa-rss", "fas fa-rss-square", "fas fa-ruble-sign", "fas fa-rupee-sign", "fas fa-save", "fas fa-search", "fas fa-search-minus", "fas fa-search-plus", "fas fa-seedling", "fas fa-server", "fas fa-share", "fas fa-share-alt", "fas fa-share-alt-square", "fas fa-share-square", "fas fa-shekel-sign", "fas fa-shield-alt", "fas fa-ship", "fas fa-shipping-fast", "fas fa-shopping-bag", "fas fa-shopping-basket", "fas fa-shopping-cart", "fas fa-shower", "fas fa-sign", "fas fa-sign-in-alt", "fas fa-sign-language", "fas fa-sign-out-alt", "fas fa-signal", "fas fa-sitemap", "fas fa-sliders-h", "fas fa-smile", "fas fa-smoking", "fas fa-snowflake", "fas fa-sort", "fas fa-sort-alpha-down", "fas fa-sort-alpha-up", "fas fa-sort-amount-down", "fas fa-sort-amount-up", "fas fa-sort-down", "fas fa-sort-numeric-down", "fas fa-sort-numeric-up", "fas fa-sort-up", "fas fa-space-shuttle", "fas fa-spinner", "fas fa-square", "fas fa-square-full", "fas fa-star", "fas fa-star-half", "fas fa-step-backward", "fas fa-step-forward", "fas fa-stethoscope", "fas fa-sticky-note", "fas fa-stop", "fas fa-stop-circle", "fas fa-stopwatch", "fas fa-street-view", "fas fa-strikethrough", "fas fa-subscript", "fas fa-subway", "fas fa-suitcase", "fas fa-sun", "fas fa-superscript", "fas fa-sync", "fas fa-sync-alt", "fas fa-syringe", "fas fa-table", "fas fa-table-tennis", "fas fa-tablet", "fas fa-tablet-alt", "fas fa-tablets", "fas fa-tachometer-alt", "fas fa-tag", "fas fa-tags", "fas fa-tape", "fas fa-tasks", "fas fa-taxi", "fas fa-terminal", "fas fa-text-height", "fas fa-text-width", "fas fa-th", "fas fa-th-large", "fas fa-th-list", "fas fa-thermometer", "fas fa-thermometer-empty", "fas fa-thermometer-full", "fas fa-thermometer-half", "fas fa-thermometer-quarter", "fas fa-thermometer-three-quarters", "fas fa-thumbs-down", "fas fa-thumbs-up", "fas fa-thumbtack", "fas fa-ticket-alt", "fas fa-times", "fas fa-times-circle", "fas fa-tint", "fas fa-toggle-off", "fas fa-toggle-on", "fas fa-trademark", "fas fa-train", "fas fa-transgender", "fas fa-transgender-alt", "fas fa-trash", "fas fa-trash-alt", "fas fa-tree", "fas fa-trophy", "fas fa-truck", "fas fa-truck-loading", "fas fa-truck-moving", "fas fa-tty", "fas fa-tv", "fas fa-umbrella", "fas fa-underline", "fas fa-undo", "fas fa-undo-alt", "fas fa-universal-access", "fas fa-university", "fas fa-unlink", "fas fa-unlock", "fas fa-unlock-alt", "fas fa-upload", "fas fa-user", "fas fa-user-circle", "fas fa-user-md", "fas fa-user-plus", "fas fa-user-secret", "fas fa-user-times", "fas fa-users", "fas fa-utensil-spoon", "fas fa-utensils", "fas fa-venus", "fas fa-venus-double", "fas fa-venus-mars", "fas fa-vial", "fas fa-vials", "fas fa-video", "fas fa-video-slash", "fas fa-volleyball-ball", "fas fa-volume-down", "fas fa-volume-off", "fas fa-volume-up", "fas fa-warehouse", "fas fa-weight", "fas fa-wheelchair", "fas fa-wifi", "fas fa-window-close", "fas fa-window-maximize", "fas fa-window-minimize", "fas fa-window-restore", "fas fa-wine-glass", "fas fa-won-sign", "fas fa-wrench", "fas fa-x-ray", "fas fa-yen-sign" };
        }

public static string[] GetBootstrapfabclass()
{
 return new string[] {"fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-adn","fab fa-adversal","fab fa-affiliatetheme","fab fa-algolia","fab fa-amazon","fab fa-amazon-pay","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-asymmetrik","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-behance","fab fa-behance-square","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-btc","fab fa-buromobelexperte","fab fa-buysellads","fab fa-cc-amazon-pay","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-chrome","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-codepen","fab fa-codiepie","fab fa-connectdevelop","fab fa-contao","fab fa-cpanel","fab fa-creative-commons","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-dashcube","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-deviantart","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dribbble-square","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-edge","fab fa-elementor","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-ethereum","fab fa-etsy","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-facebook-square","fab fa-firefox","fab fa-first-order","fab fa-firstdraft","fab fa-flickr","fab fa-flipboard","fab fa-fly","fab fa-font-awesome","fab fa-font-awesome-alt","fab fa-font-awesome-flag","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-square","fab fa-github","fab fa-github-alt","fab fa-github-square","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-plus-square","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-gulp","fab fa-hacker-news","fab fa-hacker-news-square","fab fa-hips","fab fa-hire-a-helper","fab fa-hooli","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-imdb","fab fa-instagram","fab fa-internet-explorer","fab fa-ioxhost","fab fa-itunes","fab fa-itunes-note","fab fa-java","fab fa-jenkins","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-js-square","fab fa-jsfiddle","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-korvue","fab fa-laravel","fab fa-lastfm","fab fa-lastfm-square","fab fa-leanpub","fab fa-less","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-maxcdn","fab fa-medapps","fab fa-medium","fab fa-medium-m","fab fa-medrt","fab fa-meetup","fab fa-microsoft","fab fa-mix","fab fa-mixcloud","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-nintendo-switch","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-odnoklassniki","fab fa-odnoklassniki-square","fab fa-opencart","fab fa-openid","fab fa-opera","fab fa-optin-monster","fab fa-osi","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-php","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-hat","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pinterest-square","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quinscape","fab fa-quora","fab fa-ravelry","fab fa-react","fab fa-readme","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-reddit-square","fab fa-rendact","fab fa-renren","fab fa-replyd","fab fa-resolving","fab fa-rocketchat","fab fa-rockrms","fab fa-safari","fab fa-sass","fab fa-schlix","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-simplybuilt","fab fa-sistrix","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slack-hash","fab fa-slideshare","fab fa-snapchat","fab fa-snapchat-ghost","fab fa-snapchat-square","fab fa-soundcloud","fab fa-speakap","fab fa-spotify","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-staylinked","fab fa-steam","fab fa-steam-square","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-telegram","fab fa-telegram-plane","fab fa-tencent-weibo","fab fa-themeisle","fab fa-trello","fab fa-tripadvisor","fab fa-tumblr","fab fa-tumblr-square","fab fa-twitch","fab fa-twitter","fab fa-twitter-square","fab fa-typo3","fab fa-uber","fab fa-uikit","fab fa-uniregistry","fab fa-untappd","fab fa-usb","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viadeo-square","fab fa-viber","fab fa-vimeo","fab fa-vimeo-square","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whatsapp-square","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-xbox","fab fa-xing","fab fa-xing-square","fab fa-y-combinator","fab fa-yahoo","fab fa-yandex","fab fa-yandex-international","fab fa-yelp","fab fa-yoast","fab fa-youtube","fab fa-youtube-square"};
}

public static string[] GetBootstrapfarclass()
{
 return new string[]
{
"far fa-address-book","far fa-address-card","far fa-arrow-alt-circle-down","far fa-arrow-alt-circle-left","far fa-arrow-alt-circle-right","far fa-arrow-alt-circle-up","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-alt","far fa-calendar-check","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-times","far fa-caret-square-down","far fa-caret-square-left","far fa-caret-square-right","far fa-caret-square-up","far fa-chart-bar","far fa-check-circle","far fa-check-square","far fa-circle","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-alt","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-dot-circle","far fa-edit","far fa-envelope","far fa-envelope-open","far fa-eye-slash","far fa-file","far fa-file-alt","far fa-file-archive","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-flag","far fa-folder","far fa-folder-open","far fa-frown","far fa-futbol","far fa-gem","far fa-hand-lizard","far fa-hand-paper","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-rock","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hdd","far fa-heart","far fa-hospital","far fa-hourglass","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-list-alt","far fa-map","far fa-meh","far fa-minus-square","far fa-money-bill-alt","far fa-moon","far fa-newspaper","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-pause-circle","far fa-play-circle","far fa-plus-square","far fa-question-circle","far fa-registered","far fa-save","far fa-share-square","far fa-smile","far fa-snowflake","far fa-square","far fa-star","far fa-star-half","far fa-sticky-note","far fa-stop-circle","far fa-sun","far fa-thumbs-down","far fa-thumbs-up","far fa-times-circle","far fa-trash-alt","far fa-user","far fa-user-circle","far fa-window-close","far fa-window-maximize","far fa-window-minimize","far fa-window-restore"
}
}


  }
}

How Sent Email Using HtmlMailer Using Asp.net MVC ,Change Password Logic



Configure Gmail For Sent Smtp Mail From Asp.net MVC Using HTML Mailer Template

A)First You Need To Setup Your Mail Provider Credential

1). Goto Www.gmail.com and login it after Login ( you will have to enable less secure sign-ins           under Connected apps & sites. Toggle the switch under “Allow less secure apps” to “ON”.)

2). You will redirect this link 

           https://myaccount.google.com/security#connectedapps

 3). And then select option Directed in red color in the image 



4). Then Goto Settings of gmail

5). navigate to Settings > Outgoing Email. Change the Protocol to SMTP which will 
      open the SMTP Options. As Define In Pic



6).  Use the following settings:
             Server address: smtp.gmail.com
             Server port :465 or 587
             Username:your.email@gmail.com
             Password:your password 
            Connection type:SSL (ssl://) 
       And Setting It Into New File Explain in Next Point 7

7). Then You Will  Add New Cofig file with name Setting.config  And Write This Code

<?xml version="1.0"?>
<appSettings>
<add key="FromEmail" value="your.email@gmail.com" />
  <add key="smtpusername" value="your.email@gmail.com" />
  <add key="smtppassword" value="your password " />
  <add key="smtpport" value="587" />
  <add key="smtphost" value="smtp.dot5hosting.com" />
</appSettings>

8). And Then Finally Add Reference this config File To Root Web.config File Like This

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  https://go.microsoft.com/fwlink/?LinkId=301879
  -->
<configuration>
 <configSections>
 <\configSections>
<connectionStrings>
<\connectionStrings>
<appSettings configSource="settings.config"/>

</configuration>

9). And Next You Need to Create A Class Which Containt Mail Function For sending Mail From Asp.net MVC
The Mail function Write Under The class into to Utility Sub folder of BAL folder Exist under the Root Directory of Project There Diffrent Function You Can use Any of Them

using System;
using System.Collections;
using System.Configuration;
using System.Net.Mail;
using System.Threading;
using System.Threading.Tasks;
using System.Web;


namespace myProject.BAL.Utility
{
/// <summary>
/// Summary description for MailHelper.
///
</summary>
public class MailHelper
{
#region Methods
/*testing*/
public static string SendEmailGmail(string sTo,
string sFrom, string sCc,
 string sBcc, string sSubject, string sBody)
{
string message = string.Empty;
try
{
SmtpClient SmtpMail = new SmtpClient(
Utils.ConfigKey("smtphost"));
SmtpMail.Port = Utils.ToInt(Utils.ConfigKey("smtpport"));
SmtpMail.EnableSsl = true;
SmtpMail.UseDefaultCredentials = true;
SmtpMail.Credentials = new System.Net.NetworkCredential
(Utils.ConfigKey(
"smtpusername"), Utils.ConfigKey("smtppassword"));

MailMessage email = new MailMessage();

string[] strArrEmails = sTo.Split(',');
foreach (string strEmail in strArrEmails)
{
if (!string.IsNullOrEmpty(strEmail))
email.To.Add(GetValidEmailID(strEmail.Trim()));
}

email.From = new MailAddress(sFrom);

if (!String.IsNullOrEmpty(sCc))
email.CC.Add(sCc);
if (!String.IsNullOrEmpty(sBcc))
email.Bcc.Add(sBcc);

if (!String.IsNullOrEmpty(sSubject))
email.Subject = sSubject;

email.Body = sBody;
email.IsBodyHtml = true;
Thread email1 = new Thread(delegate ()
{
SmtpMail.Send(email);
});
email1.IsBackground = true;
email1.Start();
message = "success";
}
catch (Exception ex)
{
message = ex.Message;
}

return message;
}

public static string SendEmailHtmlAttGmail
(string sTo, string sFrom, string sCc,
 string sBcc, string sSubject, string sBody, ArrayList files)
{
string message = string.Empty;
try
{
SmtpClient SmtpMail = new SmtpClient(
Utils.ConfigKey("smtphost"));
SmtpMail.Port = Utils.ToInt(
Utils.ConfigKey("smtpport"));
SmtpMail.EnableSsl = true;
SmtpMail.UseDefaultCredentials = true;
SmtpMail.Credentials =
new System.Net.NetworkCredential(
Utils.ConfigKey
("smtpusername"), Utils.ConfigKey("smtppassword"));

MailMessage email = new MailMessage();

string Body = "";
string sUrl =
System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
//Body = "<HTML><HEAD>";
Body += "<BASE href='" + sUrl + "'>";
Body += sBody;

string[] strArrEmails = sTo.Split(',');
foreach (string strEmail in strArrEmails)
{
if (!string.IsNullOrEmpty(strEmail))
email.To.Add(GetValidEmailID(strEmail.Trim()));
}

email.From = new MailAddress(sFrom);

if (!String.IsNullOrEmpty(sCc))
email.CC.Add(sCc);
if (!String.IsNullOrEmpty(sBcc))
email.Bcc.Add(sBcc);

if (!String.IsNullOrEmpty(sSubject))
email.Subject = sSubject;

email.Body = sBody;
email.IsBodyHtml = true;

if (files != null && files.Count > 0)
{
foreach (object o in files)
{
string file = o.ToString();
//Adds the Attachment
try
{
email.Attachments.Add(new Attachment(file));
}
catch
{
}
}
}
Thread email1 = new Thread(delegate ()
{
SmtpMail.Send(email);
});
email1.IsBackground = true;
email1.Start();

message = "success";
}
catch (Exception ex)
{
message = ex.Message;
}

return message;
}

public static string SendEmail(string sTo,
 string sFrom, string sCc, string sBcc,
 string sSubject, string sBody)
{
string message = string.Empty;
try
{
SmtpClient SmtpMail = new SmtpClient(
Utils.ConfigKey("smtphost_live"));
SmtpMail.Credentials = new System.Net.NetworkCredential
(Utils.ConfigKey
("smtpusername_live"), Utils.ConfigKey("smtppassword_live"));

MailMessage email = new MailMessage();

string[] strArrEmails = sTo.Split(',');
foreach (string strEmail in strArrEmails)
{
if (!string.IsNullOrEmpty(strEmail))
email.To.Add(GetValidEmailID(strEmail.Trim()));
}

email.From = new MailAddress(sFrom);

if (!String.IsNullOrEmpty(sCc))
email.CC.Add(sCc);
if (!String.IsNullOrEmpty(sBcc))
email.Bcc.Add(sBcc);

if (!String.IsNullOrEmpty(sSubject))
email.Subject = sSubject;

email.Body = sBody;
email.IsBodyHtml = true;

Thread email1 = new Thread(delegate ()
{
SmtpMail.Send(email);
});
email1.IsBackground = true;
email1.Start();

message = "success";
}
catch (Exception ex)
{
message = ex.Message;
}

return message;
}

public static string SendEmailHtmlAtt(
string sTo, string sFrom, string sCc, 
string sBcc, string sSubject, string sBody, ArrayList files)
{
string message = string.Empty;
try
{
SmtpClient SmtpMail = new SmtpClient
(Utils.ConfigKey("smtphost_live"));
SmtpMail.Credentials =
 new System.Net.NetworkCredential
(Utils.ConfigKey("smtpusername_live"),
 Utils.ConfigKey("smtppassword_live"));
                MailMessage email = new MailMessage();

string Body = string.Empty;

string sUrl =
System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
//Body = "<HTML><HEAD>";
Body += "<BASE href='" + sUrl + "'>";
Body += sBody;

string[] strArrEmails = sTo.Split(',');
foreach (string strEmail in strArrEmails)
{
if (!string.IsNullOrEmpty(strEmail))
email.To.Add(GetValidEmailID(strEmail.Trim()));
}

email.From = new MailAddress(sFrom);

if (!String.IsNullOrEmpty(sCc))
email.CC.Add(sCc);
if (!String.IsNullOrEmpty(sBcc))
email.Bcc.Add(sBcc);

if (!String.IsNullOrEmpty(sSubject))
email.Subject = sSubject;

email.Body = sBody;
email.IsBodyHtml = true;

if (files != null && files.Count > 0)
{
foreach (object o in files)
{
string file = o.ToString();
// Adds the Attachment
try
{
email.Attachments.Add(new Attachment(file));
}
catch
{
}
}
}

Thread email1 = new Thread(delegate ()
{
SmtpMail.Send(email);
});
email1.IsBackground = true;
email1.Start();

message = "success";
}
catch (Exception ex)
{
message = ex.Message;
}

return message;
}

public static string GetValidEmailID(string strEmailID)
{
return strEmailID.Replace(";", ",").Replace(" ", "");
}

#endregion
}
}
9). Now You Need To Create Html File That Is HTML Mailer 
the file Name is Verify Changepass.html (note :you can write any 
name you want and same name you canaccess when you are acces it on
 controller action method) and Save It Share folder Of View directory
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style type="text/css">
/* FONTS */
@import url(
'https://fonts.googleapis.com/css?family=Poppins:100,
100i,200,200i,300,300i,400,400i,500,
500i,600,600i,700,700i,800,800i,900,900i');

/* CLIENT-SPECIFIC STYLES */
body, table, td, a
{ 
-webkit-text-size-adjust: 100%;
 -ms-text-size-adjust: 100%;
 }
table, td
 { 
mso-table-lspace: 0pt; mso-table-rspace: 0pt;
 }
img
{ 
-ms-interpolation-mode: bicubic;
 }

/* RESET STYLES */
img
{
border: 0; height: auto;
 line-height: 100%;
 outline: none;
 text-decoration: 
none; }
table
{
 border-collapse: collapse !important;
 }
body
{ height: 100% !important;
margin: 0 !important;
 padding: 0 !important;
 width: 100% !important;
 }

/* iOS BLUE LINKS */
a[x-apple-data-detectors]
{
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}

/* MOBILE STYLES */
@media screen and (max-width:600px)
{
h1
{
font-size: 32px !important;
line-height: 32px !important;
}
}

/* ANDROID CENTER FIX */
div[style*="margin: 16px 0;"]
{ margin: 0 !important; }
</style>
</head>
<body style="background-color: #f3f5f7;
margin: 0 !important; padding: 0 !important;">

<!-- HIDDEN PREHEADER TEXT -->
<div style="display: none; font-size: 1px;
 color: #fefefe; line-height: 1px;
 font-family: 'Poppins', sans-serif; 
max-height: 0px; max-width: 0px; opacity: 0;
overflow: hidden;">
We're thrilled to have you here! Get ready to dive into your
 new account.
</div>

<table border="0" cellpadding="0" cellspacing="0" width="100%"
style="background:url('../../images/banner-1.jpg');
background-repeat:no-repeat;background-size:100% 100%;">
<!-- LOGO -->
<tr>
<td align="center">
<!--[if (gte mso 9)|(IE)]>
<table align="center" border="0"
 cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="center" valign="top"
width="600">
<![endif]-->

<table border="0" cellpadding="0"
cellspacing="0" width="100%"
 style="max-width: 600px;">
<tr>
<td align="center" valign="top"
style="padding: 40px 10px 40px 10px;">
<a href="{HomeUrl}"
 target="_blank" style="text-decoration: none;">
<img src="{logoUrl}" />
</a>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->

</td>
</tr>
<!-- HERO -->
<tr>
<td align="center" style="padding: 0px 10px 0px 10px;">
<!--[if (gte mso 9)|(IE)]>
<table align="center" border="0"
cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="center" valign="top" width="600">
<![endif]-->

<table border="0" cellpadding="0"
cellspacing="0" width="100%" 
style="max-width: 600px;">
<tr>
<td bgcolor="#ffffff"
align="center" valign="top" 
style="padding: 40px 20px 20px 20px; 
border-radius: 4px 4px 0px 0px; color: #111111; 
font-family: 'Poppins', sans-serif; 
font-size: 48px; font-weight: 400; 
letter-spacing: 2px; line-height: 48px;">
Hi {CandidateFname} {CandidateLname}
                        <h1 style="font-size: 42px;
 font-weight: 400; margin: 0;"> 
 Trouble signing in?</h1>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->

</td>
</tr>
<!-- COPY BLOCK -->
<tr>
<td align="center" style="padding: 0px 10px 0px 10px;">
<!--[if (gte mso 9)|(IE)]>
<table align="center" border="0"
cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="center" valign="top" width="600">
<![endif]-->

<table border="0" cellpadding="0"
 cellspacing="0" width="100%" 
style="max-width: 600px;">
<!-- COPY -->
<tr>
<td bgcolor="#ffffff" align="left"
 style="padding: 20px 30px 40px 30px; color: #666666;
 font-family: 'Poppins', sans-serif; 
font-size: 16px; font-weight: 400; 
line-height: 25px;">
<p style="margin: 0;">{CandidateMessage}</p>
</td>
</tr>
<!-- BULLETPROOF BUTTON -->
<tr>
<td bgcolor="#ffffff" align="left">
<table width="100%" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#ffffff" align="center"
style="padding: 20px 30px 60px 30px;">
<table border="0"
 cellspacing="0" cellpadding="0">
<tr>
<td align="center"
 style="border-radius: 3px;" bgcolor="#398bf7"><a href="{link}" 
target="_blank" style="font-size: 18px; 
font-family: Helvetica, Arial, sans-serif;
 color: #ffffff; text-decoration: none;
 color: #ffffff; text-decoration: none;
 padding: 12px 50px; border-radius: 2px; 
border: 1px solid #398bf7; display: inline-block;">
Reset Password</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td bgcolor="#ffffff" align="left"
 style="padding: 0px 30px 0px 30px; color: #666666;
 font-family: &apos;Lato&apos;,
 Helvetica, Arial, sans-serif; font-size: 16px;
 font-weight: 400; line-height: 25px;">
<p style="margin: 0;">
If that doesn't work, copy and 
paste the following link in your browser:</p>
</td>
</tr>
<!-- COPY -->
<tr>
<td bgcolor="#ffffff" align="left"
style="padding: 20px 30px 20px 30px;
 color: #666666; font-family: &apos;Lato&apos;
, Helvetica, Arial, sans-serif;
 font-size: 12px; font-weight: 400; line-height: 25px;">
<p style="margin: 0;">
{url}
</p>
</td>
</tr>
<!-- COPY -->
<tr>
<td bgcolor="#ffffff" align="left"
style="padding: 0px 30px 20px 30px; 
color: #aaaaaa; font-family: &apos;Lato&apos;
, Helvetica, Arial, sans-serif;
 font-size: 13px;
 font-weight: 400; line-height: 25px;">
<p style="margin: 0;
 text-align: center;">
If you did not make this request, 
just ignore this email. Otherwise, pleas click 
button above to change your password.</p>
</td>
</tr>
<!-- COPY -->
<tr>
<td bgcolor="#ffffff"
align="left" style="
padding: 0px 30px 40px 30px; 
border-radius: 0px 0px 0px 0px;
 color: #666666; 
font-family: 'Poppins', sans-serif; 
font-size: 14px; font-weight: 400;
 line-height: 25px;">
<p style="margin: 0;">{Owner},<br>Team</p>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->

</td>
</tr>
<!-- SUPPORT CALLOUT -->
<tr>
<td align="center" style="padding: 10px 10px 0px 10px;">
<!--[if (gte mso 9)|(IE)]>
<table align="center" border="0"
 cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="center" valign="top" width="600">
<![endif]-->

<table border="0" cellpadding="0"
cellspacing="0" width="100%" 
style="max-width: 600px;">
<!-- HEADLINE -->
<tr>
<td bgcolor="#398bf7" align="center"
style="padding: 30px 30px 30px 30px;
 border-radius: 4px 4px 4px 4px; color: #666666; 
font-family: 'Poppins', sans-serif;
 font-size: 16px; font-weight: 400; line-height: 25px;">
<h2 style="font-size: 16px;
 font-weight: 400; color: #ffffff;
 margin: 0;">Need more help?</h2>
<p style="margin: 0;
 font-size: 14px;">
<a href="{Contactus}" target="_blank" 
style="color: #ffffff;">We&rsquo;re here, 
ready to talk</a></p>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->

</td>
</tr>
<!-- FOOTER -->

</table>

</body>
</html>

10). Now You Need To Acces This HTML File Into Action Method
Here I Am Using Account Controller To Sent Verify Link 
using myProject.BAL.Utility;
using myProject.DataEntity;
using myProject.Models;
using Newtonsoft.Json;
using System;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
namespace myProject.Controllers
{
[Authorize]
[OutputCache(CacheProfile = "Default")]
public class AccountController : Controller
{
 [AllowAnonymous]
public ActionResult ForgotPwd()
{
return View();
}

[AcceptVerbs(HttpVerbs.Post)]
[AllowAnonymous]
public ActionResult ForgotPwd(string userName)
{
try
{
// mail or sms send to user.

var uD = _ac.CheckUserNameIsExist(userName);
if (uD.UserID > 0)
{
var userId = uD.UserID;
var guid = Guid.NewGuid();
var lnkHref = "<a href='" + Url.Action("ResetPassword",
"Account",
 new { email = userName, code = guid }, "http")
 + "' target='_blank' style='color: #398bf7;'>Conferm Account</a>";
var sTo = _ac.GetActiveUser(userName).EmailID;
var sFrom = "careers@techgnite.com";
var sCc = "";
var sBcc = "";
var sSubject = "Password Reset Url";
//
string body = string.Empty;
               //now we Are reading Html Template 
using (StreamReader reader = new StreamReader(
Server.MapPath
                       ("~/Views/Shared/Changepass.html")))
{
body = reader.ReadToEnd();
}
body = body.Replace("{HomeUrl}",
 Url.Action("index", "Home",
 "", "http"));
body = body.Replace("{logoUrl}",
 Url.Content("~/images/logo.png"));
body = body.Replace("{CandidateFname}", uD.FName);
body = body.Replace("{CandidateLname}", uD.LName);
body = body.Replace("{FullCandidatePhone}",
uD.HomePhone);
body = body.Replace("{CandidateEmail}", uD.EmailID);
body = body.Replace("{link}",
Url.Action("ResetPassword", "Account",
 new { email = userName, code = guid }, "http"));
body = body.Replace("{CandidateMessage}",
"There is a request to change 
your password. Resetting your password is easy.
 Just press the button below and follow the 
instructions. We'll have you up and running in no time.");
body = body.Replace("{Password}",
 Utils.GetSHA1HashData(uD.Password));
body = body.Replace("{url}", lnkHref);
body = body.Replace("{Owner}", "MyHealthRecords");
body = body.Replace("{Contactus}",
 Url.Action("Contact", "Home", new 
{ email = userName, code = guid }, "http"));

var result = MailHelper.SendEmailGmail
(sTo, sFrom, sCc, sBcc, 
sSubject, body);
//

if (result == "success")
{
_ac.UpdateGUID_UserDetail(userId, guid);
}
return RedirectToAction("Login");
}

ViewBag.UserNameError = "Username does not exist !";
return View();
}
catch (Exception ex)
{
Console.Write(ex);
throw;
}
}
    }
}
10).  Now You Need To Add View Of Action Method
@{
ViewBag.Title = "ForgotPwd";
Layout = "~/Views/Shared/_AccountLayoutPage.cshtml";
}

<div class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="#"><img src="~/Images/Logo.png"
 alt="logo.png" title="Power+HMS" 
class="img-fluid" /></a>
</div>
<!-- /.login-logo -->
<div class="login-box-body pb-20">
<p class="login-box-msg text-uppercase">Recover password</p>
<form novalidate action="~/Account/ForgotPwd"
method="post" class="form-element">
<div class="form-group">
<div class="floating-label">
<input type="text" class="floating-input"
name="userName" id="userName" 
placeholder=" ">
<label>Email</label>
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<button type="submit"
class="btn btn-info btn-block text-uppercase">
Reset</button>
</div>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
</div>