找回密码
 立即注册

QQ登录

只需一步,快速开始

工控课堂 首页 工控文库上位机编程

上位机编程

详解自控系统的modbus协议
2022-4-5 13:34
ASP.NET Web Pages - Chart 帮助器
Chart 帮助器 - 众多有用的 ASP.NET Web 帮助器之一。Chart 帮助器在前面的章节中,您已经学习了如何使用 ASP.NET 的 帮助器。前面已经介绍了如何使用 WebGrid 帮助器 在网格中显示数据。本章介绍如何使用 Chart 帮 ...
2022-3-12 22:07
ASP.NET Web Pages - C# -根据 XML 文件显示饼图
ASP源代码:@using System.Data; @{ var dataSet = new DataSet(); dataSet.ReadXmlSchema(Server.MapPath(data.xsd)); dataSet.ReadXml(Server.MapPath(data.xml)); var dataView = new DataView(dataSet.Tables); ...
2022-3-12 22:06
ASP.NET Web Pages - C#-根据数据库显示饼图
ASP源代码:@{ var db = Database.Open(SmallBakery); var dbdata = db.Query(SELECT Name, Price FROM Product); var myChart = new Chart(width: 600, height: 400) .AddTitle(Product Sales) .AddSeries(chartType ...
2022-3-12 22:04
ASP.NET Web Pages - C#-根据数据库显示条形图
ASP源代码:@{ var db = Database.Open(SmallBakery); var dbdata = db.Query(SELECT Name, Price FROM Product); var myChart = new Chart(width: 600, height: 400) .AddTitle(Product Sales) .DataBindTable(dataS ...
2022-3-12 22:02
ASP.NET Web Pages - C# -根据数组显示条形图
ASP源代码:@{ var myChart = new Chart(width: 600, height: 400) .AddTitle(Employees) .AddSeries(chartType: column, xValue: new { Peter, Andrew, Julie, Mary, Dave }, yValues: new { 2, 6, 4, 5, 3 }) ...
2022-3-12 22:00
ASP.NET Web Pages - C#-显示数据库数据
ASP源代码:@{ var db = Database.Open(SmallBakery); var query = SELECT * FROM Product; } html body h1Small Bakery Products/h1 table border=1 width=100% tr thId/th thProduct/th thDescription/th ...
2022-3-12 21:56
ASP.NET Razor - 标记
Razor 不是一种编程语言。它是服务器端的标记语言。 什么是 Razor? Razor 是一种标记语法,可以让您将基于服务器的代码(Visual Basic 和 C#)嵌入到网页中。 基于服务器的代码可以在网页传送给浏览器时,创建动 ...
2022-3-12 21:54
ASP.NET Web Pages - C# -Switch 条件
ASP源代码:@{ var message=; var weekday=DateTime.Now.DayOfWeek; var day=weekday.ToString() } html body @switch(day) { case Monday: message=This is the first weekday.; break; case Thursday: messag ...
2022-3-12 21:52
ASP.NET Web Pages - C# -Else If 条件
ASP源代码:@{var price=25;} html body if (price=30) { pThe price is high./p } else if (price20 price30) { pThe price is OK./p } else { pThe price is low./p } /body /html运行结果 ...
2022-3-12 21:51
ASP.NET Web Pages - C# -If Else 条件
ASP源代码:@{var price=20;} html body @if (price30) { pThe price is too high./p } else { pThe price is OK./p } /body /html运行结果:The price is OK.
2022-3-12 21:49
ASP.NET Web Pages - C# -If 条件
ASP源代码:@{var price=50;} html body @if (price30) { pThe price is too high./p } /body /html运行结果:The price is too high.​
2022-3-12 21:47
ASP.NET Web Pages - C#-While 循环
ASP源代码:html body @{ var i = 0; while (i 5) { i += 1; pLine @i/p } } /body /html运行结果:Line 1Line 2Line 3Line 4Line 5
2022-3-12 21:45
ASP.NET Web Pages - C#-For Each 循环
ASP源代码:html body ul @foreach (var x in Request.ServerVariables) {li@x/li} /ul /body /html运行结果:ALL_HTTPALL_RAWAPPL_MD_PATHAPPL_PHYSICAL_PATHAUTH_PASSWORDAUTH_TYPEAUTH_USERCERT_COOKIECERT_FLAGS ...
2022-3-12 21:43
ASP.NET Web Pages - C#-For 循环
​ASP源代码:html body @for(var i = 10; i 21; i++) { pLine @i/p } /body /html运行结果:Line 10Line 11Line 12Line 13Line 14Line 15Line 16Line 17Line 18Line 19Line 20
2022-3-12 21:38
热门文章
关闭

站长推荐上一条 /1 下一条

QQ|手机版|免责声明|本站介绍|工控课堂 ( 沪ICP备20008691号-1 )

GMT+8, 2025-12-21 21:58 , Processed in 0.047080 second(s), 14 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

返回顶部