本文整理汇总了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;
}
示例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;
}
}