我们如何在asp.net中通过电子邮件发送表格 [英] how we can email the grid in asp.net
本文介绍了我们如何在asp.net中通过电子邮件发送表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过asp.net通过电子邮件发送网格
如何使用asp.net中的邮件模板一次通过电子邮件发送所有网格值
请帮帮我.
谢谢.
解决方案
有一个通用例程可以在此处处理电子邮件: ^ ]
如果将网格数据转换为可以序列化的数据,则将其作为附件传递给电子邮件.然后,您可以在收到序列号后对其进行反序列化.
抱歉,听起来有些含糊,但是在不了解您的网格和数据的情况下,确实不可能有更多具体的信息!
首先,我们不能通过asp.net控件发送邮件.
其次,如果您要邮寄网格值,则必须将该值放在HTML表中,然后将其通过电子邮件发送给这些值
这可能对您有所帮助
如何通过电子邮件发送DataGridView内容 [ 解决方案
There is a generic routine to handle email here: Sending an Email in C# with or without attachments: generic routine.[^]
If you convert your grid data into something you can serialize, then pass that as an attachment to the email. You can then deserialize when you recieve it.
Sorry to sound vague, but without knowing about your grid and data, it isn''t really possible to be a lot more specific!
firstly we can,t mail asp.net controls.
secondly if you want to mail grid values than you have to put that values in HTML table and than email the values
This could be helpful for you
How to send DataGridView contents by email[^]
这篇关于我们如何在asp.net中通过电子邮件发送表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文