Click here to Skip to main content
15,910,009 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Http Modules Pin
N a v a n e e t h9-Dec-08 17:38
N a v a n e e t h9-Dec-08 17:38 
GeneralRe: Http Modules Pin
CrimeanTurtle200812-Dec-08 23:20
CrimeanTurtle200812-Dec-08 23:20 
QuestionPlease HELP urgent prob with datepicker control on my form! [modified] Pin
dee cronin9-Dec-08 13:37
dee cronin9-Dec-08 13:37 
AnswerRe: Please HELP urgent prob with datepicker control on my form! Pin
dee cronin9-Dec-08 16:49
dee cronin9-Dec-08 16:49 
GeneralRe: Please HELP urgent prob with datepicker control on my form! Pin
N a v a n e e t h9-Dec-08 17:40
N a v a n e e t h9-Dec-08 17:40 
QuestionTrying to access a Repeater's HeaderTemplate controls from event fired in an ItemTemplate control Pin
Cyrilix9-Dec-08 10:51
Cyrilix9-Dec-08 10:51 
Questionemail script Pin
bjh299-Dec-08 9:13
bjh299-Dec-08 9:13 
AnswerRe: email script Pin
Christian Graus9-Dec-08 9:57
protectorChristian Graus9-Dec-08 9:57 
I'm afraid that hiring people via rentacoder almost always ends this way.

bjh29 wrote:

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs)

If Me.ChangedLabel.Text = "Yes" Then

Dim mailer As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()

If debug = False Then mailer.Send("registration@lmhsc.org", "EnrolleeUpdates@lmhsc.org", _ HttpContext.Current.User.Identity.Name & ": this user has made changes to class registration for the " & SessionNameLabel.Text & " session.", _ "The above user has just registered for a new class. The " & Me.FamLastNameLabel.Text & " family has changed " & numadded & " student record(s).") Else mailer.Send("registration@lmhsc.org", "EnrolleeUpdates@lmhsc.org", _ HttpContext.Current.User.Identity.Name & ": this user has made changes to class registration for the " & SessionNameLabel.Text & " session.", _ "The above user has just registered for a new class. The " & Me.FamLastNameLabel.Text & " family has changed " & numadded & " student record(s).")
End If End If


Sending an email in the page unload seems a bit odd to me. I mean, I am not even sure what the control state would be at this point.

1 - You have a control called ChangedLabel and the text needs to be Yes, in that casing, yes and YES will fail. Is this right ?
2 - you have a debug flag in the program, if it's set to true, then the mail won't send.
3 - I don't see any code that sets up the mail server, so I don't think this code would work.
4 - the email addresses are all hard coded, as is the message, making it harder to change them later, this is an example of the terrible quality of work you get when you pay someone in India peanuts to do a job, especially if you're clueless about development, an Indian team needs a firm and experienced hand to keep them in line and make them deliver a decent product, or at least one that's in line with the spec. This is not because they are Indian, it's because they are remote, and usually under experienced. The same would happen if you were in New York and hired first year students in LA, which is, in essence what you probably ended up doing.

Christian Graus

Driven to the arms of OSX by Vista.

GeneralRe: email script Pin
bjh299-Dec-08 10:21
bjh299-Dec-08 10:21 
GeneralRe: email script Pin
Christian Graus9-Dec-08 11:16
protectorChristian Graus9-Dec-08 11:16 
GeneralRe: email script Pin
bjh299-Dec-08 11:57
bjh299-Dec-08 11:57 
GeneralRe: email script Pin
Christian Graus9-Dec-08 13:29
protectorChristian Graus9-Dec-08 13:29 
GeneralRe: email script Pin
bjh299-Dec-08 14:22
bjh299-Dec-08 14:22 
AnswerRe: email script Pin
N a v a n e e t h9-Dec-08 17:56
N a v a n e e t h9-Dec-08 17:56 
GeneralRe: email script Pin
bjh2910-Dec-08 3:17
bjh2910-Dec-08 3:17 
QuestionMaster Page - Beginner Question... Pin
AndyInUK9-Dec-08 7:55
AndyInUK9-Dec-08 7:55 
AnswerRe: Master Page - Beginner Question... Pin
Christian Graus9-Dec-08 9:58
protectorChristian Graus9-Dec-08 9:58 
QuestionProblem with German special character Pin
Kermit2119-Dec-08 6:18
Kermit2119-Dec-08 6:18 
AnswerRe: Problem with German special character Pin
led mike9-Dec-08 8:11
led mike9-Dec-08 8:11 
Questionneed to exit virtual directory Pin
Hanzaplast9-Dec-08 5:18
Hanzaplast9-Dec-08 5:18 
AnswerRe: need to exit virtual directory Pin
Christian Graus9-Dec-08 10:00
protectorChristian Graus9-Dec-08 10:00 
Questionlive web conferencing Pin
meghamaharshi9-Dec-08 2:11
meghamaharshi9-Dec-08 2:11 
AnswerRe: live web conferencing Pin
Abhijit Jana9-Dec-08 3:55
professionalAbhijit Jana9-Dec-08 3:55 
GeneralRe: live web conferencing Pin
meghamaharshi9-Dec-08 17:49
meghamaharshi9-Dec-08 17:49 
QuestionTextbox in Gridview.....On Tab out Data to be saved in Database...? Pin
codingrocks9-Dec-08 1:56
codingrocks9-Dec-08 1:56 

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.