zoukankan      html  css  js  c++  java
  • cshtm判断

     @{
                                            var data
    ="";
                                            
    if (at.Type=="H")
                                            {
                                                data 
    = "热销活动";
                                            }
                                            
    else if (at.Type == "B")
                                            {
                                                data 
    = "限时抢购";
                                            }
                                            
    else if (at.Type == "S")
                                            {
                                                data 
    = "当季专题";
                                            }
                                            
    else if (at.Type == "T")
                                            {
                                                data 
    = "动态消息";
                                            }
                                            @data;
                                     }
  • 相关阅读:
    ASP.NET(C#) DataSet数据导出到Excel
    GridView生成导出EXECL
    Gridview 手动排序实现
    用DirectoryInfo搜索文件夹时过滤隐藏文件夹
    为 DropDownList 选项添加背景或样式 收
    IIS中 CS0016: 未能写入输出文件 …….*.dll拒绝访问
    singletontheorylazy.cs
    adaptertwowayseabird.cs
    StatefulLabel.cs
    LifecycleControl.cs
  • 原文地址:https://www.cnblogs.com/shizhi57/p/2105521.html
Copyright © 2011-2022 走看看