当前位置: 首页>>代码示例>>C#>>正文


C# Maticsoft.CreateCodeTag方法代码示例

本文整理汇总了C#中Maticsoft.CreateCodeTag方法的典型用法代码示例。如果您正苦于以下问题:C# Maticsoft.CreateCodeTag方法的具体用法?C# Maticsoft.CreateCodeTag怎么用?C# Maticsoft.CreateCodeTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Maticsoft的用法示例。


在下文中一共展示了Maticsoft.CreateCodeTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateAd


//.........这里部分代码省略.........
                    goto Label_034E;

                case 2:
                    if (!this.ADForProject.HasValue)
                    {
                        newValue = "<script src=\"moveleft.js\" type=\"text/javascript\"></script>";
                        path = "adshow.htm";
                        str5 = bll.CreatePicTag(model.AdvPositionId, num, true, null, null);
                    }
                    else
                    {
                        if (this.ADForProject.Value == 1)
                        {
                            path = "SNSadpic.htm";
                            str5 = bll.CreatePicTag(model.AdvPositionId, num, false, null, null);
                        }
                        if (this.ADForProject.Value == 2)
                        {
                            path = "SNSAlbumadpic.htm";
                            str5 = bll.CreatePicTag(model.AdvPositionId, num, false, null, new int?(this.ADForProject.Value));
                        }
                        if (this.ADForProject.Value == 3)
                        {
                            path = "TfxIndexAdPic.htm";
                            str5 = bll.CreatePicTag(model.AdvPositionId, num, false, null, new int?(this.ADForProject.Value));
                        }
                        if (this.ADForProject.Value == 4)
                        {
                            path = "TaoLeAdpic.htm";
                            str5 = bll.CreatePicTag(model.AdvPositionId, num, false, null, null);
                        }
                    }
                    goto Label_034E;

                case 3:
                    if (bll.IsExist(model.AdvPositionId, num) <= 1)
                    {
                        path = "adsingle.htm";
                        break;
                    }
                    path = "adpic.htm";
                    break;

                case 5:
                    strADContent = bll.CreateCodeTag(model.AdvPositionId, num);
                    path = "adcode.htm";
                    goto Label_034E;

                default:
                    goto Label_034E;
            }
            str5 = bll.CreatePicTag(model.AdvPositionId, num, false, null, null);
        Label_034E:
            str6 = this.ReadHtml(base.Server.MapPath(path));
            DataSet set = bll.GetTransitionImg(model.AdvPositionId, num, model.RepeatColumns);
            int count = 1;
            if (set != null)
            {
                count = set.Tables[0].Rows.Count;
            }
            if (showType == 1)
            {
                str6 = str6.Replace("<%=tabWidth%>", model.Width.ToString());
                this.strW = model.Width.ToString();
                int? height = model.Height;
                int num5 = count;
                str6 = str6.Replace("<%=tabHeight%>", ((height.HasValue ? new int?(height.GetValueOrDefault() * num5) : null) + 2).ToString());
                int? nullable32 = model.Height;
                int num6 = count;
                this.strH = ((nullable32.HasValue ? new int?(nullable32.GetValueOrDefault() * num6) : null) + 2).ToString();
            }
            else if (showType == 0)
            {
                int? width = model.Width;
                int num7 = count;
                str6 = str6.Replace("<%=tabWidth%>", ((width.HasValue ? new int?(width.GetValueOrDefault() * num7) : null) + 2).ToString());
                int? nullable42 = model.Width;
                int num4 = count;
                this.strW = ((nullable42.HasValue ? new int?(nullable42.GetValueOrDefault() * num4) : null) + 2).ToString();
                str6 = str6.Replace("<%=tabHeight%>", model.Height.ToString());
                this.strH = model.Height.ToString();
            }
            else
            {
                this.strW = model.Width.ToString();
                str6 = str6.Replace("<%=tabWidth%>", model.Width.ToString()).Replace("<%=tabHeight%>", model.Height.ToString());
                this.strH = model.Height.ToString();
            }
            if (this.strAutoStart.Equals("0"))
            {
                str6 = str6.Replace("<%=tabStyle %>", "style=\"display:none;\"");
            }
            else
            {
                str6 = str6.Replace("<%=tabStyle %>", "");
            }
            str6 = str6.Replace("<%=strADContent%>", str5).Replace("<%=tabScript %>", newValue);
            this.strADContentHtml = str6;
            return strADContent;
        }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:101,代码来源:MCFShow.cs


注:本文中的Maticsoft.CreateCodeTag方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。