Click here to Skip to main content
11,494,407 members (72,815 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET ADO.NET
Hello,

I'm trying to create an asp.net application that can send emails. The user will have a drop down list with the email type and upon selection, the body of the email will be filled with a message from a database. I did this before but the message was hardcoded. The issue I have is on how to create the table in db and pass it to the text box for the body of the email.
I'm sorry if my question sounds weird but I'm really new at this and any help or article that you can pint me to would be greatly appreciated.
Posted 2-Oct-12 9:54am
mantel1804
Comments
Sergey Alexandrovich Kryukov at 2-Oct-12 16:13pm
   
It's not just weird, more importantly, this is unclear. What did you try? What's the problem? Why messages are in database, what's the general approach? Ultimate goal?
--SA
gladiatron at 2-Oct-12 17:14pm
   
I could totally go for it if someone could "pint" me ;) a little booze is always good...
Member 9006881 at 3-Oct-12 5:26am
   
can any one tell the solution for this question

* how to use email link including random numbers like https://mail.google.com/mail/13a25e1d5feee900 .and after that if user clink the link means after only the mail should Activate , but the 13a25e1d5feee900 this part of numbers should be random

* *
-
U

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

you can go like this,

store your email body messages to your database table, and on your dropdwon selected index change event you can fire select query with filter criteria based on selected value and get particular message from database table and bind that text to your text box.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 443
1 Nakul Chaudhari 240
2 CHill60 230
3 OriginalGriff 225
4 F-ES Sitecore 174
0 Sergey Alexandrovich Kryukov 10,277
1 OriginalGriff 8,805
2 Sascha Lefèvre 3,704
3 Maciej Los 3,392
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100