473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Send datagrid via email

sam
Do anyone know how to apply send datagrid via email?

Any website for reference?

Please advise.
Nov 21 '05 #1
5 5838
Hi,

I would create an spread sheet from the data and email that.

http://support.microsoft.com/kb/319180/EN-US/

http://support.microsoft.com/default...b;en-us;306022

Ken
---------------------
"sam" <sa*******@ajikl.com.my> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Do anyone know how to apply send datagrid via email?

Any website for reference?

Please advise.

Nov 21 '05 #2
sam
I had the coding and it is working fine. But how do I bind data and send it
using email?

Dim objMM As New MailMessage()
ObjMM.To = "sa*@hotmail.com"
objMM.From = "sa*@hotmail.com"
objMM.BodyFormat = Mailformat.Html
objMM.Priority = MailPriority.Normal
objMM.Subject = "Test Email"
objMM.Body = "Please ignore this email due to testing via vb.net"
Smtpmail.SmtpServer = "hotmail"
Smtpmail.Send(objMM)

Please advise.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Hi,

I would create an spread sheet from the data and email
that.

http://support.microsoft.com/kb/319180/EN-US/

http://support.microsoft.com/default...b;en-us;306022

Ken
---------------------
"sam" <sa*******@ajikl.com.my> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Do anyone know how to apply send datagrid via email?

Any website for reference?

Please advise.

Nov 21 '05 #3
sam wrote:
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Hi,

I would create an spread sheet from the data and email
that.

http://support.microsoft.com/kb/319180/EN-US/

http://support.microsoft.com/default...b;en-us;306022

Ken
---------------------
"sam" <sa*******@ajikl.com.my> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Do anyone know how to apply send datagrid via email?

Any website for reference?

Please advise.

I had the coding and it is working fine. But how do I bind data and send it
using email?

Dim objMM As New MailMessage()
ObjMM.To = "sa*@hotmail.com"
objMM.From = "sa*@hotmail.com"
objMM.BodyFormat = Mailformat.Html
objMM.Priority = MailPriority.Normal
objMM.Subject = "Test Email"
objMM.Body = "Please ignore this email due to testing via vb.net"
Smtpmail.SmtpServer = "hotmail"
Smtpmail.Send(objMM)

Please advise.


Well, I do believe that you might be going about this all wrong. The
primary use of a DataGrid is for easy addition of highly advanced
features (paging, sorting, etc.). What you might want to look at is the
repeater control, although I am also mystified as to how its end result
might appear in the content of an e-mail.

What you might want to do is "import" or "include" a separate web page
as the body of the e-mail. Then, you can use that separate web page,
pass variables on to it, and have it render properly *before* it is used
as the body of the e-mail. The tricky part is getting it to fully render
before the "send e-mail" script gets to it, but some screen scraping
might be the thing to use. That is, the collection of data or content
from a remote web page via HTTP. By using screen scraping, you ensure
that the DataGrid (or Repeater, or whatever you're gonna use) gets fully
rendered as desired before it is plunked down and used as the body of
the e-mail.

Don't ask me for an example, I'm just going out on a limb here...

....Geshel
--
************************************************** ********************
My reply-to is an automatically monitored spam honeypot. Do not use it
unless you want to be blacklisted by SpamCop. Please reply to my first
name at my last name dot org.
************************************************** ********************
Nov 21 '05 #4
Sam,

When you use a dataset as the datasource. Than you can just serialize that
using this simple serialize/deserialize method on our website.

http://www.windowsformsdatagridhelp....a-c891846eaf0b

I hope this helps,

Cor
Nov 21 '05 #5
"sam" <sa*******@ajikl.com.my> wrote in news:ut**************@TK2MSFTNGP09.phx.gbl:
Do anyone know how to apply send datagrid via email?


What is the source of your data grid?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
6
by: Alpha | last post by:
I have several textboxes that I need to chang the text when the selection row is changed in a datagrid. I have the following code. This textbox displayes the initial selection but when I click on...
7
by: moondaddy | last post by:
I have a user control being used instead of a frame page. when the user clicks on a menu item I need to send the ID (integer value) of that menu as a parameter in the postback of the user control...
2
by: Daniel Walzenbach | last post by:
Hi, I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to...
7
by: Martin | last post by:
Hi, I have a standard aspx page (form) that contains a few user controls. Upon form submission the page is validated. If validation passses then a text based email is sent. This is all working...
0
by: satish Mishra | last post by:
How to send a Dynamic Datagrid(Actually Shopping Cart Datagrid)in to an email body Programatically.
0
by: Tips | last post by:
The code below renders a datagrid and send its contents by email. Dim SB as New StringBuilder() Dim SW as New StringWriter(SB) Dim htmlTW as New HtmlTextWriter(SW)...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
2
by: fahimg | last post by:
Hi, How can i send datagrid contents by email in asp.net thanks,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.