Click here to Skip to main content
14,772,225 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: How to submit a record and send as an email attachment at once? Pin
ZurdoDev26-Oct-16 10:49
professionalZurdoDev26-Oct-16 10:49 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex26-Oct-16 11:34
Membersamflex26-Oct-16 11:34 
AnswerRe: How to submit a record and send as an email attachment at once? Pin
ZurdoDev26-Oct-16 12:49
professionalZurdoDev26-Oct-16 12:49 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex26-Oct-16 16:32
Membersamflex26-Oct-16 16:32 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
ZurdoDev26-Oct-16 16:42
professionalZurdoDev26-Oct-16 16:42 
AnswerRe: How to submit a record and send as an email attachment at once? Pin
jkirkerx26-Oct-16 14:33
professionaljkirkerx26-Oct-16 14:33 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex26-Oct-16 16:41
Membersamflex26-Oct-16 16:41 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
jkirkerx27-Oct-16 8:06
professionaljkirkerx27-Oct-16 8:06 
samflex wrote:
What is so complicated about asking how to save records to the db and generate and send a pdf attachment via email?

I was a beginner like you years ago and I got lots of help from the crew here at Code Project. I'll be honest, answering questions like yours is hard because I have no clue what version of .net your using and the level of detail your looking for because I have no history of your work, gained from looking at your code examples.

As far as your thoughts go on 1,2,3 I find it not efficient.
I use MVC and lots of models which are classes. Once you populate a class to hold your data, you just use that class over and over. In other words,
  1. you send the class to a function to write the data,
  2. then send the class to a function to generate your pdf,
  3. then send the class to a function to send the email.
Writing the data and reading it back is a waste of time, and can result in a long wait for the database server to finish. Writes take longer than reads.

Now you can get real fancy and efficient here with .Net 4.5+
You can say or think,
Task, Async
while the database write occurs, I will task creating the PDF,
I will wait for 1 and 2 to complete and send the email in the background and return control to the user.
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex27-Oct-16 9:12
Membersamflex27-Oct-16 9:12 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
jkirkerx27-Oct-16 12:36
professionaljkirkerx27-Oct-16 12:36 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex27-Oct-16 16:11
Membersamflex27-Oct-16 16:11 
QuestionPOST xml request to an API with feedback asp.net mvc Pin
MacroSss21-Oct-16 1:11
MemberMacroSss21-Oct-16 1:11 
AnswerRe: POST xml request to an API with feedback asp.net mvc Pin
jkirkerx24-Oct-16 10:15
professionaljkirkerx24-Oct-16 10:15 
AnswerRe: POST xml request to an API with feedback asp.net mvc Pin
MacroSss26-Oct-16 2:23
MemberMacroSss26-Oct-16 2:23 
GeneralRe: POST xml request to an API with feedback asp.net mvc Pin
MacroSss26-Oct-16 2:24
MemberMacroSss26-Oct-16 2:24 
QuestionThere is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
amioni20-Oct-16 2:43
Memberamioni20-Oct-16 2:43 
AnswerRe: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
jkirkerx20-Oct-16 9:57
professionaljkirkerx20-Oct-16 9:57 
QuestionHow to save modal popup form into database/data table Pin
Bootzilla3319-Oct-16 11:47
MemberBootzilla3319-Oct-16 11:47 
AnswerRe: How to save modal popup form into database/data table Pin
Sahil Saini @ Software Developer19-Oct-16 20:23
professionalSahil Saini @ Software Developer19-Oct-16 20:23 
Questioni want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 10:00
Membermoj197817-Oct-16 10:00 
AnswerRe: i want fill 2 table with 1 click can I? Pin
Vincent Maverick Durano17-Oct-16 10:07
professionalVincent Maverick Durano17-Oct-16 10:07 
GeneralRe: i want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 10:13
Membermoj197817-Oct-16 10:13 
GeneralRe: i want fill 2 table with 1 click can I? Pin
Vincent Maverick Durano17-Oct-16 10:17
professionalVincent Maverick Durano17-Oct-16 10:17 
GeneralRe: i want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 10:14
Membermoj197817-Oct-16 10:14 
AnswerRe: i want fill 2 table with 1 click can I? Pin
Wendelius17-Oct-16 10:28
mveWendelius17-Oct-16 10:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.