且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用c#asp.net在电子邮件正文中发送gridview?

更新时间:2022-12-03 11:21:28

可能是因为你的GridView包含CssClass并且当HtmlTextWriter对象写入HTML时然后它无法编写导入的CSS,使用内联CSS并且在发送make delete按钮的列之前不可见...

或者通过查找控件或文本在For循环中创建一个表of GridView ...
it may be because of your GridView contains CssClass and when HtmlTextWriter object writes HTML of GridView then it can't be able to write imported CSS, use inline CSS and before sending make delete button's column invisible...
or else create a table with in For Loop by finding controls or text of GridView...


覆盖以下方法。



Override the following method.

public override void VerifyRenderingInServerForm(Control control)
    {
    }