我有一个用于浏览邮件功能的html页面。我在stringbuilder类型的对象中取代后面的代码和替换值。替换后面的代码中的HTML内容
在.htm文件中有一个特定的行,我想通过特定情况下的代码隐藏。我如何找到该行并隐藏。
的.htm行:
<TR bgcolor="E96F00">
<TD style="font-family: Arial; font-size: 14px; font-weight: Bold; color:White;">Course Content Link</TD>
</TR>
<TR>
<TD style="font-family: Calibri; font-size: 14px;">@[email protected]<BR> </TD>
</TR>
<TR>
<TD style="font-family: Calibri; font-size: 14px; color:Red; font-weight:bold">Important: TD>
</TR>
在那里我试图取代落后代码:
if (dt.Rows[0]["Type"].ToString() == "V")
{
if (dt.Rows[0]["CourseContentPath"].ToString() != string.Empty)
{
x.Replace("@[email protected]", "<A href='" + CourseContentLink + "' target=_blank onclick='window.open(this.href, this.target,'height=1000px,width=1000px');
return false>Click here</A> to find the course content");
}
}
if (dt.Rows[0]["Type"].ToString() == "A")
{
}
MVC或Web窗体? –