asp.net Html Dynamic,asp.net - How do I retrieve HTML dynamically generated from an aspx page? - Sta...

本文介绍了一种在ASP.NET中使用VB代码生成动态HTML格式邮件的方法。作者希望能在用户点击按钮后发送包含动态信息的漂亮HTML邮件,但现有的实现方式难以维护。探讨了创建一个ASPX页面并将该页面的HTML内容作为邮件正文的可能性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

To be specific, here is what I am doing, and here is what I am trying to do:

I'm coding an ASP.NET page, with VB code behind. When the user clicks a button on the page, I send them an email with information and instructions. Rather than sending a plain text email, I send a nice, pretty, HTML-formatted one. Right now, I'm doing this in a way that I KNOW will be difficult to maintain. That is, I'm straight up writing out all of the html. i.e.

markup += "

"

markup += ""

markup += "Required Documents"

markup += ""

...and so on. Is there a way to create an aspx page (with vb code behind), and send the html of that page in the body of the email? The information is dynamic, so this pseudo-page would need logic in the on-load event to format the html correctly.

Thanks!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值