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


C# Data.StripHTML_LeaveLinksNoBr方法代码示例

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


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

示例1: OnwardsIT


//.........这里部分代码省略.........
                    MessagePanel.Visible = false;
                    FillLiteral();
                    return true;
                    break;
                case 2:
                    #region Fourth Tab

                    if (CategorySelected())
                    {
                        if (changeTab)
                            ChangeSelectedTab(2, 3);

                        FillLiteral();
                        FindPrice();
                        return true;
                    }
                    else
                    {
                        MessagePanel.Visible = true;
                        YourMessagesLabel.Text = "Must include at least one category.";
                        AdTabStrip.SelectedIndex = 2;
                        AdPostPages.PageViews[2].Selected = true;

                        return false;
                    }

                    return false;
                    #endregion
                    break;
                case 3:
                    #region Third Tab
                    bool goOn = false;

                    SummaryTextBox.InnerHtml = dat.StripHTML_LeaveLinksNoBr(SummaryTextBox.InnerHtml);

                    int countOfDates = 0;

                    if (FeaturedTextPanel.Visible)
                    {
                        if (FeatureDatesListBox.Items.Count != 0)
                        {
                            if (TemplateRadioList.SelectedValue == "1")
                            {
                                if (SummaryTextBox.InnerHtml.Trim().Length > 250 || SummaryTextBox.InnerHtml.Trim().Length == 0)
                                {
                                    YourMessagesLabel.Text += "*Must include the summary for a featured ad. It must be less than 250 characters.";
                                    MessagePanel.Visible = true;
                                    AdTabStrip.SelectedIndex = 3;
                                    AdPostPages.PageViews[3].Selected = true;
                                    return false;
                                }
                                else
                                {
                                    goOn = true;
                                }
                            }
                            else
                            {
                                if (SummaryTextBox.InnerHtml.Trim().Length > 100 || SummaryTextBox.InnerHtml.Trim().Length == 0)
                                {
                                    YourMessagesLabel.Text += "*Must include the summary for a featured ad. It must be less than 100 characters.";
                                    MessagePanel.Visible = true;
                                    AdTabStrip.SelectedIndex = 3;
                                    AdPostPages.PageViews[3].Selected = true;
                                    return false;
                                }
开发者ID:aleksczajka,项目名称:Hippo-Code---OLD,代码行数:67,代码来源:PostAnAd.aspx.cs

示例2: ValidatePage


//.........这里部分代码省略.........
                    else
                    {
                        if (tryMinMins > 59 || tryMaxMins > 59)
                        {
                            goOn = false;
                            validateMessage += "Please make sure that your Minimum and Maximum duration minutes are less than an hour. ";
                        }
                    }
                }
                else
                {
                    goOn = false;
                    validateMessage += "All adventure duration times must be integers. ";
                }
            }

            if (TimeListBox.Items.Count == 0)
            {
                goOn = false;
                validateMessage += "Please include at least one entry for days and times someone could go on this adventure. ";
            }

            if (MonthsListBox.Items.Count == 0)
            {
                goOn = false;
                validateMessage += "Please include at least one month time frame when this trip could be taken. ";
            }

            if (goOn)
            {
                MinTextBox.Text = dat.stripHTML(MinTextBox.Text.Trim());
                MaxTextBox.Text = dat.stripHTML(MaxTextBox.Text.Trim());
                DescriptionTextBox.Content = dat.StripHTML_LeaveLinks(DescriptionTextBox.Content.Replace("<div>", "<br/>").Replace("</div>", ""));
                ShortDescriptionTextBox.Text = dat.StripHTML_LeaveLinksNoBr(ShortDescriptionTextBox.Text);
                WhatObtainTextBox.Text = dat.StripHTML_LeaveLinksNoBr(WhatObtainTextBox.Text.Trim());
                HowDressTextBox.Text = dat.StripHTML_LeaveLinksNoBr(HowDressTextBox.Text.Trim());
                decimal theDecimal = 0.00M;
                bool goMin = false;
                bool goMax = false;
                if (MinTextBox.Text.Trim() != "")
                {
                    if (decimal.TryParse(MinTextBox.Text, out theDecimal))
                    {
                        goMin = true;
                    }
                    else
                    {
                        goMin = false;
                    }
                }
                else
                {
                    goMin = true;
                }

                if (MaxTextBox.Text.Trim() != "")
                {
                    if (decimal.TryParse(MaxTextBox.Text, out theDecimal))
                    {
                        goMax = true;
                    }
                    else
                    {
                        goMax = false;
                    }
                }
开发者ID:aleksczajka,项目名称:Hippo-Code---OLD,代码行数:67,代码来源:EnterTrip.aspx.cs


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