Hi Kuldeep,
If you are looking to send the content of page as body of the mail to a
recipient then you can follow these steps
1) Keep all the content that has to be mailed inside a panel control.
2) When you send mail the mail format should be Html and the body of the
mail will be the content of the panel.
You can get the content of the panel by using RenderControl. I am pasting
some part of the code which might help you
Dim strWriter As StringWriter = New StringWriter
Dim myTextWriter As HtmlTextWriter = New HtmlTextWriter(strWriter)
Dim mymail As New Mail.MailMessage
mymail.BodyFormat = MailFormat.Html
Panel1.RenderControl(myTextWriter)
mymail.Body = strWriter.ToString
In case you have further questions please revert.
--
The best
srini
http://www.expertszone.com
"Kuldeep" wrote:
Hi All,
How can i mail the current open page? The open page contains some data
(which vary every time page is opened), textbox to enter email id and
send button. When the send button is clicked i want to mail this page as
it is to the given email id.
regards
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com