This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net.Http; | |
using System.Net; | |
namespace HTTP_Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model object | |
@{ | |
var propertyName = ViewData.ModelMetadata.PropertyName; | |
var propertyValue = Convert.ToInt32(ViewData.ModelMetadata.Model); | |
var sourceList = ViewData["SourceList"]; | |
var isSearchable = ViewData["IsSearchable"]; | |
if (sourceList == null) | |
{ | |
sourceList = Enumerable.Empty<SelectListItem>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="@(Model.booleanVariable ? "display:block" : "display:none")">Some links</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DateTime dt = DateTime.Now; | |
String strDate=""; | |
strDate = dt.ToString("MM/dd/yyyy"); // 07/21/2007 | |
strDate = dt.ToString("dddd, dd MMMM yyyy"); //Saturday, 21 July 2007 | |
strDate = dt.ToString("dddd, dd MMMM yyyy HH:mm"); // Saturday, 21 July 2007 14:58 | |
strDate = dt.ToString("dddd, dd MMMM yyyy hh:mm tt"); // Saturday, 21 July 2007 03:00 PM | |
strDate = dt.ToString("dddd, dd MMMM yyyy H:mm"); // Saturday, 21 July 2007 5:01 | |
strDate = dt.ToString("dddd, dd MMMM yyyy h:mm tt"); // Saturday, 21 July 2007 3:03 PM | |
strDate = dt.ToString("dddd, dd MMMM yyyy HH:mm:ss"); // Saturday, 21 July 2007 15:04:10 | |
strDate = dt.ToString("MM/dd/yyyy HH:mm"); // 07/21/2007 15:05 |