Click here to Skip to main content
12,894,200 members (67,178 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET ADO.NET

I'm trying to create an 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 8:54am
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?
gladiatron 2-Oct-12 17:14pm
I could totally go for it if someone could "pint" me ;) a little booze is always good...
Member 9006881 3-Oct-12 5:26am
can any one tell the solution for this question

* how to use email link including random numbers like .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

* *

1 solution

Rate this: bad
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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2017
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