Any asp/vbscript coding whizzes out there?

greenspun.com : LUSENET : Unofficial Newcastle United Football Club BBS : One Thread

Not sure if anyone can help from the tiny bit of code below, but I'm getting desperate and know I'm close to an answer, but not knowing vbscript at all and very little asp experience I'm stumped! The problem is we are trying to figure out who gets sent email notification when a web form is submitted. The form itself gets written to a database. Anyway...code snippet:

Case "ToDBM"
UpdateITPRforDBM itprId
SendEmailToDBM Session("AgencySelected"), upl.Form("ProjectTitle")
Response.Redirect("Itpr/SavingITPR.asp?

Any ideas what the 'SendEmailToDBM' bit is?? I see no other reference anywhere else in the code, so don't know if it's a variable, an instruction, or what?

This is what happens when the technical lead takes off for a month and leaves a new-to-the-company non-programmer to sift through a totally unfamiliar system. I think i'll be drinking heavily tonight, or possibly even start at lunch. ;-))

-- Anonymous, May 17, 2002

Answers

Ciara - VB script and ASP is not my strongest subject but I'll have a try.

I believe that the SendEMailToDBM bit is a call to a user defined VBScript function. If you can't see it in the current page then have a look at the "Includes" section which is usually found up at the top of the page. This specifies other files that are merged into the ASP page at run time. With any luck you will find the SendEMailToDBM in of these other pages specified in the includes section.

Hope this helps!

-- Anonymous, May 17, 2002


Yes, it did help! Thanks, SellElena! Found the function in an include file(though the include was buried in the code), now to figure out how this function works. I'm determined to solve this mystery before I leave for the day!

-- Anonymous, May 17, 2002

Good luck - give me a shout if you need any more help.

-- Anonymous, May 17, 2002

Be careful what you ask for... ;-)

Solved that little mystery, but was then informed that the overhaul of this little application from hell (which was supposed to be farmed out to the contractor that worked on it last year) will be my project after all. I don't know whether to laugh or cry, but I'll be earning plenty of comp time...and the stress of 2 big projects on my own due before the end of June means I may wind up oversleeping occasionally (June 7) or even calling in sick(June 12). Must check when the US and Ireland matches are....oooh, I feel a migraine coming on.. ;-))

-- Anonymous, May 17, 2002


Easier to write it all in VB and compile it as a dll. That way you get all the debug advantages of VB and it executes like sh1t off a stick. Or do it in .NET

-- Anonymous, May 19, 2002


Moderation questions? read the FAQ