我在使用WebGrid时遇到语法问题.在我正常的剃刀标记中,我在我的foreach中格式化日期,就像这样
<td>
@String.Format("{0:MM/dd/yy hh:mm:ss}", item.complianceedatetime)
</td>
Run Code Online (Sandbox Code Playgroud)
我设置我的列宽如此
<th width="150px">
Download Date/Time
</th>
Run Code Online (Sandbox Code Playgroud)
我将如何使用Grid.Column语法执行此操作
grid.Column("complianceedatetime", "Download Date/Time", ?, ?)
Run Code Online (Sandbox Code Playgroud) 我有以下代码,WaitForExit方法不等待.它只是运行命令并转到下一个语句.该命令用于取消对应用程序的取消,而parms用于卸载命令.卸载运行正常但我需要卸载才能完成继续...它没有阻塞.
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = commandName;
startInfo.Arguments = parms;
Process process = Process.Start(startInfo);
process.WaitForExit();
Run Code Online (Sandbox Code Playgroud)